Menu

#5 Is System.exit() needed?

v1.0 (example)
closed
nobody
None
5
2017-08-28
2017-08-27
Anonymous
No

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

Discussion

  • Michael Kifer

    Michael Kifer - 2017-08-27
    • status: open --> closed
     
  • Michael Kifer

    Michael Kifer - 2017-08-27

    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.

     

Anonymous
Anonymous

Add attachments
Cancel