It should work when you application is undeployed or the server shutsdown, so something is wrong with your implementation. Look in the wiki FAQJBossJMX for a template service.
I resolved this. I am using an IDE and all along I was just terminating the server instead of shutting it down.
That's why start was working and stop wasn't.
Every thing is working fine now.