wood burning stoves 2.0*
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
Author

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: RMI server
 
Similar Threads
Passed SCJD(URLY bird)
Threads 003: Server-Side Strategies
RMI
NX: Exam "Locking" Issues: 44/80
NX: RMI and Mutlithreading