[jboss-user] [JBoss Microcontainer] - Non-daemon threads running when using Deploymentmanager in JBoss 6

Bernd Zeitler do-not-reply at jboss.com
Tue Aug 2 10:18:54 EDT 2011

Bernd Zeitler [http://community.jboss.org/people/Frito] created the discussion

"Non-daemon threads running when using Deploymentmanager in JBoss 6"

To view the discussion, visit: http://community.jboss.org/message/618834#618834

I used the deployment manager to realize deployment/undeployment with ANT. This example code worked fine with JBoss 5 but has problems with JBoss 6:

    final Context ctx = new InitialContext();
    final DeploymentManager dm = (DeploymentManager) ctx.lookup("DeploymentManager");
    dm.distribute("thejar", new URL("file:./testdist/hello.jar"), true).run();

In real life, the deployment progress is evaluated and deployment status is checked after every call to the deployment manager  ;) 

Deployment and undeployment still work as expected, but this code now leaves two non-daemon threads running. Both are threads from jboss remoting, a worker thread and an accecptor thread.

Did I miss something?



Reply to this message by going to Community

Start a new discussion in JBoss Microcontainer at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110802/87cbe8db/attachment.html 

More information about the jboss-user mailing list