Code swapping in a network server

Discussion in 'Java' started by Florian Weimer, Aug 14, 2011.

  1. I'm looking for a very lightweight library which permits replacing the
    code in a network server without closing the server socket.
    Basically, I expect it to monitor a JAR file on disk and switch to the
    new version once it changes.

    The actual server code does not keep any non-reconstructible state,
    and existing connection can keep using the old code, so the problem is
    quite simple. An application would also do it (except that those tend
    not to be lightweight), but the protocol is not HTTP, it's a customer
    protocol which runs over TLS. Currently, I use an SSLServerSocket
    with custom trust managers, which will lead to class loader issues
    because the container/application server will keep a reference to the
    trust manager past the intended life-time of the code, but I could
    switch to a plain ServerSocket and add the TLS to it using SSLEngine.

    Any suggestions?
     
    Florian Weimer, Aug 14, 2011
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Kal
    Replies:
    1
    Views:
    9,587
    Kevin Spencer
    Jun 21, 2004
  2. Jane Davis

    Network Service account over network

    Jane Davis, Jun 22, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    478
    Kevin Spencer
    Jun 22, 2005
  3. Bill Volk
    Replies:
    1
    Views:
    3,180
    Bill Volk
    Jul 2, 2003
  4. Replies:
    1
    Views:
    112
  5. maya
    Replies:
    4
    Views:
    152
Loading...

Share This Page