Skip to main content

run some code on ejb-jar deployment

1 reply [Last post]
kryptolus
Offline
Joined: 2007-03-20

Hi.

I need to run some code when an ejb-jar is deployed/undeployed.
Is it possible to package some kind of a deployment listener (or something like that) inside a ejb-jar?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kryptolus
Offline
Joined: 2007-03-20

I added a WAR with a ServletContextListener to my EAR to do this, but this doesn't seem very proper. EJB doesn't seem to have anything like a ServletContextListener for a EJB-JAR...