Init called without calling destroy in JServ

A

Ajit

Hello,

The init method gets called once when the JServ is started. After
about 5-6 hours, the init method is called again without calling the
destroy. The destroy method is only called when server is shutdown
gracefully. How should I ensure that destroy is called everytime the
server calls init.

Regds,

Ajit
 
J

Juha Laiho

(e-mail address removed) (Ajit) said:
The init method gets called once when the JServ is started. After
about 5-6 hours, the init method is called again without calling the
destroy. The destroy method is only called when server is shutdown
gracefully. How should I ensure that destroy is called everytime the
server calls init.

But on shutdown, do you see the destroy called once or twice?

What I'm after here; if I recall correctly, the servlet engine is allowed
to create multiple instances of any given servlet class to service client
requests (it's best to check this from the Servlet specification, though).
So, it might be that the first instance is not destroyed before shutdown,
just that an additional instance has been created.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top