Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Network Approaches

 
Gurpreet Saini
Ranch Hand
Posts: 295
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17276
6
IntelliJ IDE Mac Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic