Dear community

I developed a tomcat JSP servlet which - say - instantiates a class,
work with that class and gives some output back to the calling user in
the browser.

My point is instantiating the class ***once*** for every requests coming
after this instantiation. The reason is: the class loads several
components into memory and I would like not to do this at every call of
this JSP servlet but just once.

Where shell I put the initializing code for the "heavy" components? Is
this possible?

Thank you very much in advance!
Fabio

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to