[jboss-dev-forums] [Design of EJB 3.0] - Registering additional MBeans for EJB3 MDB
jaikiran
do-not-reply at jboss.com
Sat Jan 3 07:43:40 EST 2009
When a EJB2.x MDB is deployed in JBoss4.x and 5, there are some additional (JBoss specific) MBeans registered. For ex: An MBean to stop/start delivery of messages to the MDB.
http://anonsvn.jboss.org/repos/jbossas/trunk/server/src/main/org/jboss/ejb/MessageDrivenContainer.java
| // Try to register the instance pool as an MBean
| try
| {
| ...
| }
| catch(Throwable t)
| {
| log.debug("Failed to register pool as mbean", t);
| }
| // Initialize pool
| instancePool.setContainer(this);
| instancePool.create();
|
| for (Iterator it = proxyFactories.keySet().iterator(); it.hasNext();)
| {
| String invokerBinding = (String) it.next();
| EJBProxyFactory ci = (EJBProxyFactory) proxyFactories.get(invokerBinding);
| // Try to register the container invoker as an MBean
| try
| {
| ....
| }
|
Any reason why we don't do this for EJB3 MDBs?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4199331#4199331
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4199331
More information about the jboss-dev-forums
mailing list