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.
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...
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.