hi there,
on Weblogic there is the possibility to use a ApplicationLifecycleListener. By extending an abstract base class and referencing it in the weblogic-application.xml of your application you are able to implement functionality called when the application is started or stoped.
How would i implement similar functionality in JBoss? The background for this is, that i needs to open a socket in my application - the socket should be opened on the deployment of the application and it should be close when the application is undeployed.
Thanks in advance for any information regarding this problem
have a merry Christmas...
Kai
You need to write an MBean service, package it in a service archive (.sar) and bundle it with your .ear, see the section on "Writing MBeans"
http://www.jboss.org/wiki/Wiki.jsp?page=FAQJBossJMX