File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RMI server

 
Jim Janssens
Ranch Hand
Posts: 210
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I look at my assginment (B&S) I see that the server part goes for 40 points. That is equal to the points given to the gui and data class.

I was wondering, because if you implement the server with RMI, you endup with one main class (which starts the RMI registry and publishes you remote database) , one remote interface and a implementation/adapter class. This are 3 classes with like 100lines of codes if you count them all.

Since it is so trivial and there is no real difficulty about it, I wonder how they are going to give those 40 points ? I mean, with RMI it works or it doesn't no ? When you build your own server (sockets/serialization) I can understand that you can make certain mistakes. But when you use RMI you use something thats allready been made, you just *use* it. And I don't see how it can be used wrong, since its so trivial.

So, am I missing certain issues ? or is this really it ?
 
John Smith
Ranch Hand
Posts: 2937
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I mean, with RMI it works or it doesn't no ?

There is a little more involved, most notably the record locking mechanism that must ensure the thread safety.
 
Jim Janssens
Ranch Hand
Posts: 210
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah ok, but that depends on the design. I have a database facade which is thread safe and which I remotely expose.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic