aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes ConnectionFactory Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "ConnectionFactory" Watch "ConnectionFactory" New topic
Author

ConnectionFactory

Michael Morris
Ranch Hand

Joined: Jan 30, 2002
Posts: 3451
Hi All,
Is there any need to keep a mapping of remote clients to connections (assuming each client gets its own unique connection)? The only reason I can think of is so that you only create a connection object once per server session for any unique client.
Thanks for your opinions
Michael Morris


Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17257
    
    6

I don't see why you would need that. I always looked as the Connection Object as a client proxy, or a client stand-in. It represented a single client on the server. So the mapping was done for me by RMI and Remote, so I didn't have to do any kind of mapping.
Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Michael Morris
Ranch Hand

Joined: Jan 30, 2002
Posts: 3451
Hi Mark,
Thanks for the responce (that's what I was hoping you would say.) I should be finishing up on the server this week. Get ready for a barage of client/GUI questions
Thanks againg
Michael Morris
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: ConnectionFactory