Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
    Bookmark Topic Watch Topic
  • New Topic

Anderew - Could you lookk at this please

 
Mike Tilling
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi

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
Posts: 188
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Pie
Posts: 11914
209
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Report post to moderator
I have closed this topic as it appears to be a subset of this topic.

Regards, Andrew
 
    Bookmark Topic Watch Topic
  • New Topic