• Post Reply Bookmark Topic Watch Topic
  • New Topic

server vs standalone mode

 
Macy
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,

I understand that
java -jar runme.jar server starts the server application;
java -jar runme.jar starts the client application; and
java -jar runme.jar alone starts the standalone application.

If I start the server first (java -jar runme.jar server) then call the standalone app (java -jar runme.jar alone). What should I do? Should I throw an exception on the standalone app and terminated it; and leave the server running. Or my program will not be test on this situation?

Thanks!

Macy
 
Pawel Poltorak
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Macy,

Instruction states that at any moment, only one program will access database file, so the situation you described should not happen.

Best Regards,
Pawel
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!