Im running out of options. I tried to fallback to as6 and then my i started to have problems with persistent timer service (Just like https://community.jboss.org/thread/162938 ) .
Maybe there is a way to put my application as the first resource to shutdown and make the other services wait a little while I execute some operations (services like weld, ejb3) ?
I tried to create my "ServerShutdownMBean", but there is no support of any more ( StartupServiceMBean was removed)
Any more options?