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?
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...
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.