Is System.exit() needed?
Brought to you by:
kifer
Hi Michael,
I was wondering how important is it to use System.exit(); when using the Flora-2 java interface?
Is it not enough just to close the Flora-2 session? The reason I am asking this is that I have set up a webservice using Flora-2 and I noticed that everytime I make a call to the webservice to start a new Flora-2 session, the Java thread count goes up. If I use System.exit();, it shuts down the Tomcat server that I use for the webservice. Just wanted to check.
Thanks,
Kinzang
Anonymous
Do you mean "how important it is for you to call exit()?"
You are the one writing the service, so you decide what's needed in your particular program.
I suppose you need to look into how to terminate threads rather than shutting down the whole thing.