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