aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes I am close to submit - please help 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 "I am close to submit - please help" Watch "I am close to submit - please help" New topic
Author

I am close to submit - please help

Mike Tilling
Ranch Hand

Joined: Feb 17, 2006
Posts: 86
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-It was mentionned in my assignement : "java doc style comments must be used for each element of the public interface of each class"

*What do they mean by each element of the public interface? could you explain this with another sentence that a non english man can understand correctly?

2-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?

3-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)

4- I wonder if there is someone who will take the exam before march 31, so we can exhange the vouchers - I am not really ready - please help!

Best Regards
Bob Nedwor
hangman
Ranch Hand

Joined: Aug 17, 2005
Posts: 215

Mike:

*What do they mean by each element of the public interface? could you explain this with another sentence that a non english man can understand correctly?
I think they mean "method". Each method of the DBAccess interface. You should use correct Javadoc in all of the methods in all of your .java source files, I would think.


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)
Do not do this! Use java.rmi.registry.LocateRegistry.createRegistry(int port) instead!! The evaluator will not have the rmiregistry running.

I am not sure about the other items. I hope this helps.
--Bob
[ March 24, 2006: Message edited by: Bob Nedwor ]

Bob N
SCJP - 1.4
SCJD - (B&S) Used 1.5 And It Runs On Solaris10
SCWCD - Thanks to HFSJ!!
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
Regarding your voucher expiry: schedule (just before the voucher expires) your exam for a date as late as possible. Then you can reschedule your exam to an even later date if neccessary. You should be able get an extra month or so out of that old voucher.


Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
Mike Tilling
Ranch Hand

Joined: Feb 17, 2006
Posts: 86
Do not do this! Use java.rmi.registry.LocateRegistry.createRegistry(int port) instead!! The evaluator will not have the rmiregistry running.

I am not sure about the other items. I hope this helps.
--Bob
[ March 24, 2006: Message edited by: Bob Nedwor ]

HI BOB,

MANY THANKS,

WHAT IS THE PORT NUMBER THAT I WILL HAVE TO PROVIDE TO createRegistry(int port)?

BEST REGARDS
Bob Nedwor
hangman
Ranch Hand

Joined: Aug 17, 2005
Posts: 215

Mike:

WHAT IS THE PORT NUMBER THAT I WILL HAVE TO PROVIDE TO createRegistry(int port)?
You have to get the port number from the user. Only he knows what a good port number is on his machine. Your Gui, that writes to the suncertify.properties to store this info, should accept the port input by the user and use this to run the createRegistry method.

Look at what I have done in this screen shot when the user runs the server. The 2nd window appears after the user clicks on the "Submit Server Config Data" button.

I hope this helps.
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11460
    
  94

Hi Mike,
WHAT IS THE PORT NUMBER THAT I WILL HAVE TO PROVIDE TO createRegistry(int port)?
Please don't shout.

If you dont want to give people the option of changing the RMI Registry port, you could use java.rmi.registry.Registry.REGISTRY_PORT - this is port number 1099: the same port you have probably been forcing your users to use when you were starting up the registry manually. If you do this, you might want to add a comment in your design decisions document explaining why you are not allowing the port to be changed (but you are doing that for your existing solution, aren't you).

You haven't stated whether you have been running rmic against your Remote classes (if you are using JDK 5 you may not have been doing this). If you have not run rmic and bundled the resultant stub files into the executable jar files you will not be meeting the requirement of "You must provide all classes pre-installed so that no dynamic classs downloading occurs".
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)
As Jason said in this thread, this is beyond the requirement of the exam.

Regards, Andrew


The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Mike Tilling
Ranch Hand

Joined: Feb 17, 2006
Posts: 86
Thanks Bob

createRegistry(int port) run on the server or on the client?
If it runs on the server, will the server have to run createRegistry(int port) for each client?
tom smith
Greenhorn

Joined: Feb 16, 2006
Posts: 20
the code for andrews book is available. also the requirements for URLyBird state that the user should not use the rmiregistry directly. so many here use a starter class (adapter pattern) as defined in your manifest.mf file.

also the trottier book does the same thing but in a different manner / different design.

i am reworking my newly designed adpater class to use the 'observer / observable pattern'. i was doing too much in the starter class that needs to be divided between server and alone mode. too much code redundancy.

but since i had no idea what any of the aforementioned were 72 hours ago, i am pleased with my new java / design knowledge, which in the end is the real objective.

pretty damn exciting!
[ March 25, 2006: Message edited by: tom smith ]
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11460
    
  94

Hi Mike,
createRegistry(int port) run on the server or on the client?
If it runs on the server, will the server have to run createRegistry(int port) for each client?
Nope - createRegistry() takes the place of externally running RmiRegistry. As such you only need to run it once.

Regards, Andrew
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: I am close to submit - please help