I tried the following:
| <bean name="QueueEJB3MDB"
class="org.jboss.mq.server.jmx.Queue">
| <property
name="destinationManager">jboss.messaging.destination:service=Queue,name=QueueEJB3MDB</property>
| <property name="JNDIName">QueueEJB3MDB</property>
| <property
name="serverPeer">jboss.messaging:service=ServerPeer</property>
| <depends>jboss.messaging:service=PostOffice</depends>
| </bean>
|
reusing Scott's delegating bean
http://anonsvn.jboss.org/repos/jbossas/trunk/messaging/src/main/org/jboss...
All this does is delegation to the JBoss Messaging Destination MBean Service.
The issue that I faced was that between the create() and start() calls on the Queue MC
bean, there was no MBeanRegistration thereby no preRegister callback, such that the
JBossMessaging mbean service could get hold of the mbean server. Because of this, the
start() of the JBoss Messaging service fails with NPE because it has not got hold of the
mbean server.
If this is the same as the other thread, then forgive me.
I did not want to digress the topic.
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=146039
Certainly we can create the destinations the mbean way. But I wanted to give the mc bean
way a try.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4191922#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...