wood burning stoves
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Anderew  - Could you lookk at this please Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Reply locked New topic

Anderew - Could you lookk at this please

Mike Tilling
Ranch Hand

Joined: Feb 17, 2006
Posts: 86

I am close to submit -I have to, my voucher for the essay exam will expire on march 31. Could you help me with this (English is my second foreign language)

1-For the RMI use, it was specified:
"You must not require the installation of a security manager"
"You must provide all classes pre-installed so that no dynamic classs downloading occurs
"You must use RMI over JRMP (do not use IIOP)"

I used Rmi as follows
-Start RmiRegistry (rmiregistry.exe)
-Bound the server on the registry directory (Naming.rebind(objectName, this)
-The client get the Remote object server using Naming.lookup(\\ServerName\objectName)

Does this fit with the assignement requirement regarding RMI?

2-Is it a must to refresh the table of each client after any change on the server database file? (I do not have time to do so anyway)
Jason Moors
Ranch Hand

Joined: Dec 04, 2001
Posts: 188
1) Bob has answered this question in your last post, the requirements state that your server must be started using the command java -jar <path_and_filename> server. Therefore you shouldn't expect the examiner to start the rmiregistry.exe.

Therefore you should search the forum for createRegistry.

Do not do this! Use java.rmi.registry.LocateRegistry.createRegistry(int port) instead!! The evaluator will not have the rmiregistry running.

2) This is beyond the requirement of the exam, you just need to handle the fact that the record may not be available.
[ March 25, 2006: Message edited by: Jason Moors ]
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11778

I have closed this topic as it appears to be a subset of this topic.

Regards, Andrew

The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
I agree. Here's the link: http://aspose.com/file-tools
subject: Anderew - Could you lookk at this please
It's not a secret anymore!