The current EJB spec does not provide hook notification for deployment/redeployment. However I wrote a pattern, AbstractEJBean, on theserverside.com that can simulate this hook. Take a look at:
http://www.theserverside.com/patterns/thread.jsp?thread_id=7270 AbstractEJBean.intializeOncePerBeanClass() should be called once per bean classloading; however, it will not be called immediately at redeployment, but rather when the first bean instance is created. Then the 2nd part of the solution, which unfortunately is vendor-specific, is to instruct your container to instantiate at least 1 bean instance to the free-pool at deployment. Gene --- Lieve Laporte <[EMAIL PROTECTED]> wrote: > Can anyone help me with the following problem: > > I want a cache to be flushed and then to be refilled at the moment that an EJB is > redeployed. > How can I have this EJB do this (it needs to happen only once, at redeployment of the > EJB, > not per new EJB instance creation) ? > > Thanks a lot, > Lieve > > =========================================================================== > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body > of the message "signoff EJB-INTEREST". For general help, send email to > [EMAIL PROTECTED] and include in the body of the message "help". > __________________________________________________ Do You Yahoo!? Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1 =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
