This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes RMI server 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 "RMI server" Watch "RMI server" New topic

RMI server

Jim Janssens
Ranch Hand

Joined: Sep 24, 2004
Posts: 210
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

Joined: Oct 08, 2001
Posts: 2937
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

Joined: Sep 24, 2004
Posts: 210
Yeah ok, but that depends on the design. I have a database facade which is thread safe and which I remotely expose.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: RMI server
It's not a secret anymore!