Re: Java

From: Stefan Schulz (terra_at_spacetime.de)
Date: 09/23/04

  • Next message: Hal Rosser: "Re: A question about practical Java programming books"
    Date: Thu, 23 Sep 2004 20:50:46 +0200
    
    

    On 23 Sep 2004 09:59:29 -0700, Ted <johnston_58@hotmail.com> wrote:

    > Hi andreas,
    >
    > Thanks again for the tips.
    >
    > I have now got my server & client running.
    > The server runs from the console ( might change this to a gui ) and
    > the client runs from a gui. The server accepts multiple connections.

    As andreas said, i would suggest keeping the server simple and
    background-only. Configuration can happen via file or privileged users.

    > I now want to setup a user manager of some kind which will keep track
    > of currently logged on users and when they logoff and also display
    > their names/id's beside their messages. I'm not too sure how to go
    > about this yet, any idea's?

    Sounds like a classic scenario for a Singleton to me. The Singleton would
    serve as a "connection registry" to which each connection adds itself on
    creation, and updates itself whenever something significant happens. Just
    be sure to unregister each connection once it dies. (the finally statement
    can be very helpful for such cleanup duties!)

    -- 
    Whom the gods wish to destroy they first call promising.
    

  • Next message: Hal Rosser: "Re: A question about practical Java programming books"

    Relevant Pages

    • Re: Java
      ... > I have now got my server & client running. ... The server accepts multiple connections. ... Sounds like a classic scenario for a Singleton to me. ... serve as a "connection registry" to which each connection adds itself on ...
      (comp.lang.java.databases)
    • Re: Singletons and Serialization Question
      ... You'll probably have to serialize just ... instantiate a new connection on the new server. ... references to them are kept in the singleton. ... connection, not creating a new one, so it doesn't need the password. ...
      (comp.lang.java.programmer)
    • Re: How to get VFP based program out if Internet is disconnected?
      ... should this be a server configuration issue? ... select End Sessesion when connection is broken. ... >I have a client running my purely VFP based program in terminal service ...
      (microsoft.public.fox.programmer.exchange)
    • Remoting Singleton Server
      ... I have sucessfully created a singleton server DLL hosted in a Windows ... server via a server proxy. ... is if I try to make a second connection to the ...
      (microsoft.public.dotnet.framework.remoting)
    • Re: How to get VFP based program out if Internet is disconnected?
      ... I am not familiar with the server. ... > select End Sessesion when connection is broken. ... >>I have a client running my purely VFP based program in terminal service ...
      (microsoft.public.fox.programmer.exchange)