[jboss-user] [EJB/JBoss] - Re: EAR does not correctly deploy EJB3 MDB

tnine do-not-reply at jboss.com
Mon Jul 30 13:23:09 EDT 2007


Just for a follow up, it does work with my 2.0 descriptions.  Am I missing something with my 3.0 annotations?

ejb-jar.xml

  | <?xml version="1.0" encoding="UTF-8"?>
  | <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
  | "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
  | <ejb-jar>
  | 	<description>Message Driven Bean</description>
  | 	<display-name>Statements Message Driven Bean</display-name>
  | 
  | 	<!--Define our EJBs-->
  | 	<enterprise-beans>
  | 		<!--	Define our MDB for statements-->
  | 		<message-driven>
  | 			<description>
  | 				Bean to access messages statement input queue
  | 			</description>
  | 			<display-name>Statement Bean</display-name>
  | 
  | 			<ejb-name>ejb/StatementBean</ejb-name>
  | 
  | 			<ejb-class>
  | 				com.purdueefcu.statements.mdb.StatementMessageDrivenBean
  | 			</ejb-class>
  | 
  | 			<transaction-type>Container</transaction-type>
  | 			<acknowledge-mode>AUTO_ACKNOWLEDGE</acknowledge-mode>
  | 			<message-driven-destination>
  | 				<destination-type>javax.jms.Queue</destination-type>
  | 			</message-driven-destination>
  | 			<resource-ref>
  | 				<res-ref-name>statmentinput</res-ref-name>
  | 				<res-type>javax.jms.QueueConnectionFactory</res-type>
  | 				<res-auth>Container</res-auth>
  | 			</resource-ref>
  | 
  | 
  | 		</message-driven>
  | 	</enterprise-beans>
  | 
  | 	<!--  make our EJB an XA transaction -->
  | 	<assembly-descriptor>
  | 		<container-transaction>
  | 			<method>
  | 				<ejb-name>ejb/StatementBean</ejb-name>
  | 				<method-name>*</method-name>
  | 			</method>
  | 			<trans-attribute>Required</trans-attribute>
  | 		</container-transaction>
  | 	</assembly-descriptor>
  | </ejb-jar>
  | 
  | 

jboss.xml

  | <?xml version='1.0' encoding='UTF-8' ?>
  | <!DOCTYPE jboss PUBLIC
  |       "-//JBoss//DTD JBOSS 4.0//EN"
  |       "http://www.jboss.org/j2ee/dtd/jboss_4_0.dtd">
  | 
  | <jboss>
  |     <enterprise-beans>
  |         <message-driven>
  |             <ejb-name>ejb/StatementBean</ejb-name>
  |             <destination-jndi-name>queue/StatementInput</destination-jndi-name>
  |             <resource-ref>
  |                 <res-ref-name>statmentinput</res-ref-name>
  |                 <jndi-name>ConnectionFactory</jndi-name>
  |             </resource-ref>
  |         </message-driven>
  |     </enterprise-beans>
  | </jboss>
  | 

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

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



More information about the jboss-user mailing list