JBoss Community

Is concurrent code in JMX services allowed?

created by Bastian Helfert in EJB3 - View the full discussion

The EJB 3.1 Spec. states:

The enterprise bean must not attempt to manage threads.

The JBoss EJB 3 Extensions Reference states:

[JMX services] are singleton beans...

So I reason:

  1. Using a multithreaded 3rd-party lib in a JMX Service is not conform to the Spec.
  2. A JMX service is a wrapper for a EJB 3.1 Singleton Bean with additional management capabilities provided through the JMX console.

 

Am I right?

Reply to this message by going to Community

Start a new discussion in EJB3 at Community