[jboss-user] [EJB 3.0] - Re: ServiceBean and depends clause - Help Please

rnicholson10 do-not-reply at jboss.com
Wed Jul 15 10:19:38 EDT 2009


I added the following dependency using the jboss.xml file (which is in the META-INF directory in the EAR file):


  | <?xml version='1.0' encoding='UTF-8' ?>
  | <jboss>
  | 	<enterprise-beans>
  | 		<session>
  | 			<ejb-name>InputServiceBean</ejb-name>
  | 			<depends>jboss.j2ee:ear=phase-test.ear,jar=phase-input.jar,name=SourceBridgeCheckTimerBean,service=EJB3</depends>
  | 		</session>
  | 	</enterprise-beans>
  | </jboss>
  | 

And with the fully qualified class name for the service bean:


  | <?xml version='1.0' encoding='UTF-8' ?>
  | <jboss>
  | 	<enterprise-beans>
  | 		<session>
  | 			<ejb-name>com.paddypower.phase.input.bean.service.InputServiceBean</ejb-name>
  | 			<depends>jboss.j2ee:ear=phase-test.ear,jar=phase-input.jar,name=SourceBridgeCheckTimerBean,service=EJB3</depends>
  | 		</session>
  | 	</enterprise-beans>
  | </jboss>
  | 

But neither of these seems to work. The SourceBridgeCheckTimerBean always loads after the ServiceBean which would indicate that the depends clause has no effect. 

Am I specifying the ejb-name correctly? The depends clause is specified in the same way I used in the ServiceBean previously.

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

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



More information about the jboss-user mailing list