Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NX: contractor: Last minute doubts

 
Manoj Gundawar
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI guys,
I am almost done with everything (finally)
But my doubts and troubls are getting worse with each passing day. Here are few final doubts. Any response to them will be a great help.
1. As per assignment the Owner is 8 digit field. (customer id) Can I accept a number less than 8 digits? Or should it be always 8 digits only?
2. About RmiRegistry:
I start the registry only once, when the Server GUI is loaded. (I have server GUI to start and stop the server)
When user presses 'STOP & EXIT' button, I do system.exit(0);
I was assuming that this stops the rmiregistry. Also I have gone thru some posts on this forum and some people say it stops.
But practically sometimes it dosent stop. I have to reboot my machine to stop it.
So does anybody know:
1. If I can programatically stop the rmiregistry?
2. Is there any way to check if the rmiregistry is still running or not
after the system.exit()?
Thanks,
Manoj
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You cannot stop the RMI registry from running in code. You can check to see if it is still running by doing a lookup and if it throws an exception, then either the object is no longer bound, or the registry has stopped. There might be another exception, but none I can think of off the top of my head.
If you start the registry in code, then it will stop. Maybe the problem you are seeing is with your machine and nothing to do with the registry. I wouldn't worry to much about it though.
I have not seen any instructions of the fact that the customer must be 8 and only 8 characters and no less, so I would decide on your own. You can go easy and make sure that it does not exceed 8 characters, or not. Good Luck
Mark
 
Manoj Gundawar
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Mark,
Sorry but one more question.
I dont need policy setup during RMI use. (may be because I did policy setup in the past) Can we assume that SUN also wont need it? Those who have submitted assignment recently, are they supplying policy file too, to take care of this issue?
Thanks,
Manoj
 
Bill Robertson
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

1. As per assignment the Owner is 8 digit field. (customer id) Can I accept a number less than 8 digits? Or should it be always 8 digits only?

I asked Sun this exact question and they said to assume the owner field
can handle values less than 8 digits.
 
Manoj Gundawar
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Bill,
This is the ultimate confirmation.
Manoj
 
Billy Tsai
Ranch Hand
Posts: 1304
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I implemented some field restriction checkings in my assignment
like at least 8 digits like that
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic