Kickstart non-EJB object in J2EE container
I need to have the same functionality than the servlet <load-on-startup> tag does for servlets, in the EJB tier for a generic object. I have a distributed system that has the servlet/JSP tier separate from the EJB tier. I do not want to use a singleton, but need to start a class on application server startup and have it remain in memory for the life of the application server.
How do I accomplish this in a generic way?
|