Re: [daemon] Can init() be called more than once in a single JVM session?

2017-11-29 Thread Mark Thomas
On 29/11/17 11:09, Andrea Lo Pumo wrote: > Does anyone have an answer? My expectation is that init() will be call once per JVM but that the jsvc process may create multiple JVMs (sequentially, not concurrently) and that init() will be called for each. If jsvc detects that the JVM has aborted

Re: [daemon] Can init() be called more than once in a single JVM session?

2017-11-29 Thread Andrea Lo Pumo
Does anyone have an answer? Best regards. 2017-10-23 15:53 GMT+02:00 Andrea Lo Pumo : > Since now, I have always assumed that init() is called once, and no > more. Now I am not sure anymore. My doubt is that init() can be called > a second time, after destroy() has been

[daemon] Can init() be called more than once in a single JVM session?

2017-10-23 Thread Andrea Lo Pumo
Since now, I have always assumed that init() is called once, and no more. Now I am not sure anymore. My doubt is that init() can be called a second time, after destroy() has been called, for example, if the program is restarted by Jsvc. Is this so? If yes, I should use a static variable