-
1. Re: How do I turn off the warning You are not getting the se
genman May 24, 2003 9:14 PM (in response to karp-newbie)
Well, transactions work for me, and it's likely a problem with your configuration.
You have to (correctly) set up the queue references and connection pool references in ejb-jar.xml before you can get things to work. (Take a look at the JBoss 2.4 documentation.)
Your ejb-jar.xml :
<message-driven>
<ejb-name>Bean</ejb-name>
<ejb-class></ejb-class>
<transaction-type>Container</transaction-type>
<message-driven-destination>
<destination-type>javax.jms.Queue</destination-type>
</message-driven-destination>
<resource-ref>
<res-ref-name>jms/QCF</res-ref-name>
<res-type>javax.jms.QueueConnectionFactory</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<resource-ref>
<res-ref-name>jms/queue/abc</res-ref-name>
<res-type>javax.jms.Queue</res-type>
<res-auth>Container</res-auth>
</resource-ref>
Your jboss.xml
<message-driven>
<ejb-name>Bean</ejb-name> <destination-jndi-name>queue/abc</destination-jndi-name>
<resource-ref>
<res-ref-name>jms/QCF</res-ref-name>
<jndi-name>java:/JmsXA</jndi-name>
</resource-ref>
<resource-ref>
<res-ref-name>jms/queue/abc</res-ref-name>
<jndi-name>queue/abc</jndi-name>
</resource-ref>
You have to look up the connection at:
java:/comp/env/jms/QCF -
2. Re: How do I turn off the warning You are not getting the se
adrian.brock May 26, 2003 7:24 AM (in response to karp-newbie)Changing the MDB connection Local only makes
it worse.
Now you have two local transactions instead
of the one (probably your database).
If you upgrade to the latest versions, it only
gives this warning once.
Alternatively use a database with an xa adaptor.
Regards,
Adrian -
3. Re: How do I turn off the warning You are not getting the se
karp-newbie May 27, 2003 10:01 AM (in response to karp-newbie)So, which component is likely using XA transactions if it is not JMS or the DB? The MDB's container? The Session Bean's container?
Also, what does the xa-connection element of the jboss.xml file do? -
4. Re: How do I turn off the warning You are not getting the se
adrian.brock May 27, 2003 2:24 PM (in response to karp-newbie)It is your DB that is not XA.
The xa-connection tells jboss not to expect
an XAConnectionFactory, e.g. older
versions of MQSeries didn't have one.
JBossMQ does have one.
Regards,
Adrian