Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NX: Multiple Servers

 
Flavio Nobili
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I've think in the consequence of having more than one server running in the same machine. Is there a way to avoid the user to initiate more than one instance of the server application?

Regards,
Fl�vio.
 
Bharat Ruparel
Ranch Hand
Posts: 493
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Flavio,
The developer can run as many instances of the server as he wants as long as they are being bound to a unique port number on that machine. As a matter of fact, that is how we create multiple instances of the WeLogic server on our development environment.
For the scope of this assignment however, I don't think you should waste your time trying to prevent the developer/tester from starting multiple instances of the server on the same machine. I didn't do that and I don't think anybody on the forum tried to do that either to the best of my knowledge.
Keep marching, this is one less worry for you for the SCJD assignment.
Regards.
Bharat
 
Max Habibi
town drunk
( and author)
Sheriff
Posts: 4118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Fl�vio,
I agree: this problem is outside the scope of the assignment.
All best,
M
 
Flavio Nobili
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks,
But if different instances of the server is accessing the same file, isn't it cause problems?
Rgrs,
Fl�vio.
 
Max Habibi
town drunk
( and author)
Sheriff
Posts: 4118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
At any point in time, there are any number of things that might go wrong, but which you are not required to deal with. I believe that this particular IF condition is one of those situations.
The Sun folks really just want to see if you can code up a server, as described, that works under 'normal' conditions. That's really all you need to prove to them.
If you're still uncomfortable about this, may I recommend that you make a TODO list of items to for yourself, code up the rest of strict, explicit requirements of the application, then decide which of the TODO items you want to include?
Best regards,
M
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic