0 Replies Latest reply on Oct 25, 2012 11:08 AM by crooked.mile

    JBoss 7 Thread Pool

    crooked.mile

      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.