• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

I am close to submit - please help

 
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • 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-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
 
hangman
Posts: 220
Angular Framework Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Mike Tilling
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 220
Angular Framework Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
author and jackaroo
Posts: 12200
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Mike Tilling
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 12200
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
reply
    Bookmark Topic Watch Topic
  • New Topic