aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Network Approaches Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Network Approaches" Watch "Network Approaches" New topic
Author

Network Approaches

Gurpreet Saini
Ranch Hand

Joined: Jun 09, 2002
Posts: 295
Hi reader,
My specification says "You may choose between using RMI, or using serialized objects over TCP socket connections".
In the above quote do you think the word "over" is being used to completly deny the use ServerSocket's and Sockets in writing data server code.
Secondly, to contradict the above statement specification also says " You must create a data server that will accept multiple concurrent network connections and allow them to interrogate and manipulate the database".
From, this I dont think by only creating RMI server would help (As, it can also accept multiple connections and can serve the request's to its respective client). But using that would seem awkward. ServerSocket implementation is must to acquire multiple client socket connections. Further it can communicate with RMI.
Waiting for your opinion's
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17257
    
    6

The over is not saying use this over that. It is really one this "Object Serialization over Sockets" meaning you serialize the object and send it through a socket. The over means through ,or by way of, or using sockets.
Both Sockets and RMI will allow multiple clients to access the sserver. And yes just the Registry is not enough to handle the multiple clients, you need to create a server. In both cases "Serialization over Sockets" and "RMI" will require you to create a server.
Hope that clears things up for you
Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
Consider Paul's rocket mass heater.
 
subject: Network Approaches