I use Singleton pattern for this thread. The thread is a commandManager, all different commands will go to the manager to be processed(command pattern). so there is a while loop to check if there are commands coming in the manager.
in my mind, I thougt, when hot deploy, Jboss automatically kills all runnig threads first, then loads a new .ear, but it doesn't look like this way.
I also did a simple test. after I started Jboss, and Jboss finished loading. the commandmanager was running. then I deleted the .ear. I found the thread was still running.
Please help. Thank you.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3927793#3927793
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3927793