How to configure a container listener?

At container event (Start/Stop), some EJB configuration works can be done. Or JavaEE has other ways to fulfill this task?
[135 byte] By [revevera] at [2007-11-27 2:28:48]
# 1

Unfortunately EJB does not define such a container start/stop event. It's something being

considered for a future revision of the spec.The best way to portably receive such notifications

is to define a web application and register a ServletContextListener that defines the

contextInitialized and contextDestroyed methods.If you put the .war in the same .ear as the

ejb-jar, you can just lookup the necessary ejbs and invoke them from the web application

event callbacks.

--ken

ksaksa at 2007-7-12 2:41:25 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
Ok. That's a workaround. Thanks lot!
revevera at 2007-7-12 2:41:25 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...