-
1. Re: MBean depends on EJB
jonlee Jun 20, 2003 10:59 PM (in response to dlhoots)Wouldn't it be better to deploy your MBean through the standard JBoss deployer? Look at the user-service.xml. That is the start.
However, what you probably really want is to package your MBean and the EJB in a SAR with a dependency on the EJB. Your MBean is probably looking for your EJB before it is bound. -
2. Re: MBean depends on EJB
jgc195 Nov 24, 2003 8:45 AM (in response to dlhoots)you're probably solved this problem by now, but I thought I'd share what worked for me.
Inside your jboss-service.xml, specify:
jboss.j2ee:jndiName=JNDI_PATH_OF_YOUR_BEAN],service=EJB -
3. Re: MBean depends on EJB
sha0lin Jan 8, 2004 1:54 PM (in response to dlhoots)What if we want to redeploy an EAR file with an updated EJB? I get error messages indicating that my Scheduleable Timer MBean isn't registered after I've redeployed my EAR file. My MBean class is contained in the EAR file, so how do I prevent such error messages (my MBean times out every 10 seconds) ?
14:21:02,738 ERROR [Scheduler$Listener] Invoke of the Schedulable MBean failed
javax.management.InstanceNotFoundException: :name=CheckMessageTimer is not registered.
at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:354)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:535)
at org.jboss.varia.scheduler.Scheduler$MBeanListener.handleNotification(Scheduler.java:1354)
at org.jboss.mx.server.NotificationListenerProxy.handleNotification(NotificationListenerProxy.java:69)
at javax.management.NotificationBroadcasterSupport.sendNotification(NotificationBroadcasterSupport.java:95)
at javax.management.timer.Timer.sendNotifications(Timer.java:441)
at javax.management.timer.Timer.access$000(Timer.java:31)
at javax.management.timer.Timer$RegisteredNotification.doRun(Timer.java:612)
at org.jboss.mx.util.SchedulableRunnable.run(SchedulableRunnable.java:164)
at org.jboss.mx.util.ThreadPool$Worker.run(ThreadPool.java:225)
14:21:12,738 ERROR [Scheduler$Listener] Invoke of the Schedulable MBean failed
javax.management.InstanceNotFoundException: :name=CheckMessageTimer is not registered.
at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:354)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:535)
at org.jboss.varia.scheduler.Scheduler$MBeanListener.handleNotification(Scheduler.java:1354)
at org.jboss.mx.server.NotificationListenerProxy.handleNotification(NotificationListenerProxy.java:69)
at javax.management.NotificationBroadcasterSupport.sendNotification(NotificationBroadcasterSupport.java:95)
at javax.management.timer.Timer.sendNotifications(Timer.java:441)
at javax.management.timer.Timer.access$000(Timer.java:31)
at javax.management.timer.Timer$RegisteredNotification.doRun(Timer.java:612)
at org.jboss.mx.util.SchedulableRunnable.run(SchedulableRunnable.java:164)
at org.jboss.mx.util.ThreadPool$Worker.run(ThreadPool.java:225)