[jboss-dev-forums] [JBoss AS 7 Development] - JBoss 7 Thread Pool

Erik Andersen do-not-reply at jboss.com
Thu Oct 25 11:08:25 EDT 2012


Erik Andersen [https://community.jboss.org/people/crooked.mile] created the discussion

"JBoss 7 Thread Pool"

To view the discussion, visit: https://community.jboss.org/message/772383#772383

--------------------------------------------------------------
Hi

I am new to jboss and especially jboss 7. I am working on an application that uses a jboss 4.2.3 thread pool like so:

 ObjectName threadPoolObjectName = new ObjectName("jboss.jca:service=WorkManagerThreadPool");
 threadPool = (ThreadPool) mbeanServer.getAttribute(threadPoolObjectName, "Instance");
 threadPool.run(new Thread(new MyClientStarter(), "MyClientThread"));

How is the above done in JBoss 7.1.1? Can someone point me in the right direction please as I am struggling to find documentation on using subsystem in jboss. E.g. is a subsystem the new name for an MBean? How does one use a subsystem in Java? Stuff like that.

Thanks very much.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/772383#772383]

Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20121025/8eeca61e/attachment.html 


More information about the jboss-dev-forums mailing list