[jboss-user] [EJB 3.0] - Service MBean dependencies (on EJB 3.0)

gsferra@imnet.it do-not-reply at jboss.com
Thu Apr 19 06:36:18 EDT 2007


Hello, 
I've a standard JBoss Service MBean that depends on two EJB 3.0, an entity (accessed by a stateless facade bean) and a message driven (that create and bind a JMS queue). 

The Service MBean implementation

  | import org.jboss.system.ServiceMBean;
  | 
  | public interface MyServiceMBean extends ServiceMBean {
  | }
  | 

  | import org.jboss.system.ServiceMBeanSupport;
  | 
  | public class MyService extends ServiceMBeanSupport implements MyServiceMBean {
  | ...
  | }
  | 
jboss-service.xml

  | <?xml version="1.0" encoding="UTF-8"?>
  | <!DOCTYPE server PUBLIC "-//JBoss//DTD MBean Service 4.0//EN" "http://www.jboss.org/j2ee/dtd/jboss-service_4_0.dtd">
  | <server>
  |   <mbean code="MyService" name="test:service=MyService">
  |     <depends>jboss.j2ee:service=EJB3,name=MyEntityFacadeBean</depends>
  |     <depends>jboss.j2ee:service=EJB3,name=MyMessageDrivenBean</depends>
  |   </mbean>
  | </server>
  | 

When I start up JBoss AS I got these messages: 
... 
11:36:58,286 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=test.ear,jar=test-bl.jar,name=MyMessageDrivenBean,service=EJB3 with dependencies: 
11:36:58,286 INFO [JmxKernelAbstraction] persistence.units:ear=test.ear,jar=test-bl.jar,unitName=testpu 
11:36:58,457 INFO [EJBContainer] STARTED EJB: MyMessageDrivenBean ejbName: MyMessageDrivenBean 
11:36:58,457 WARN [MessagingContainer] Could not find the queue destination-jndi-name=queue/test 
11:36:58,457 WARN [MessagingContainer] destination not found: queue/test reason: javax.naming.NameNotFoundException: test not bound 
11:36:58,473 WARN [MessagingContainer] creating a new temporary destination: queue/test 
11:36:58,488 INFO [test] Bound to JNDI name: queue/test 
... 
11:36:58,769 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=test.ear,jar=test-bl.jar,name=MyEntityFacadeBean,service=EJB3 with dependencies 
11:36:58,769 INFO [JmxKernelAbstraction] persistence.units:ear=test.ear,jar=test-bl.jar,unitName=testpu 
11:36:58,832 INFO [EJBContainer] STARTED EJB: MyEntityFacadeBean ejbName: MyEntityFacadeBean 
... 
--- MBeans waiting for other MBeans --- 
ObjectName: test:service=MyService 
State: CONFIGURED 
I Depend On: 
jboss.j2ee:service=EJB3,name=MyEntityFacadeBean 
jboss.j2ee:service=EJB3,name=MyMessageDrivenBean 

--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM --- 
ObjectName: jboss.j2ee:service=EJB3,name=MyEntityFacadeBean 
State: NOTYETINSTALLED 
Depends On Me: 
test:service=MyService 

Looking at the JMX console everything seems to be ok, the service is registered (but it doesn't work), the EJB 3.0 its working and bounded and the message driven bean JMS queue is bounded. What I missing?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4038826#4038826

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4038826



More information about the jboss-user mailing list