Skip to main content

EJB Deployment listener

1 reply [Last post]
blackraven
Offline
Joined: 2008-06-03
Points: 0

Hi.
I need to start some task immediately after deploying my EJB module. How I can do that? I read docs for AMX/JMX, but I didn't found anything useful.
Thanks.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
joshua_77
Offline
Joined: 2008-05-16
Points: 0

I always end up using an .ear and packaging a .war just for the benefit of being able to use a web.xml file and specifying a lifecycle listener. That's what you can do if you want your resource on deployment.
See this site for an example: http://www.java-tips.org/java-ee-tips/java-servlet/how-to-work-with-serv...