- Posted by: Kenny MacLeod
- Posted on: May 29 2002 08:36 EDT
Is there a container-agnostic mechanism for post-deployment initialization of EJBs?
I need a way to have this initialization run once (and only once) before a given bean is first used by the client. This could be done when the server starts up, or lazily just before the bean is invoked.
Seems like something that should be catered for, but I can't find it.
The way we have done it is to have a Servlet that is loaded on startup and thus its init method is run
A lot of containers also offer start up classes but this is container specific.