No, to both questions, you need to patch jboss.
One other option is to make your service depend on the container that hosts the EJB.
Before that container is stopped, you should be triggered to stop to, and do the shutdown
logic there.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096856#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...