JBoss Community

JBoss 7 Thread Pool

created by Erik Andersen in JBoss AS 7 Development - View the full discussion

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

Start a new discussion in JBoss AS 7 Development at Community