GeeCON Prague 2014*
The moose likes EJB and other Java EE Technologies and the fly likes Error while using MDB with JMS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Error while using MDB with JMS" Watch "Error while using MDB with JMS" New topic
Author

Error while using MDB with JMS

mitforu patel
Greenhorn

Joined: Jan 13, 2010
Posts: 11
Hi All,

I am getting following error while using MDB 3.0 with JMS. I am using weblogic as a server.

Here is my mdb and jms sender.



and sender :



but while deploying mdb jar file I am getting following error on weblogic console :

<Feb 10, 2011 8:45:55 PM EST> <Warning> <EJB> <BEA-010061> <The Message-Driven EJB: MyMDB is unable to connect to the JMS destination: jms/myQueue. The Error was:[EJB:015027]The Message-Driven EJB is transactional but JMS connection factory referenced by the JNDI name: jms/myCF is not a JMS XA connection factory.>
<Feb 10, 2011 8:56:05 PM EST> <Warning> <EJB> <BEA-010096> <The Message-Driven EJB: MyMDB is unable to connect to the JMS destination or bind to JCA resource adapter: jms/myQueue. Connection failed after 63 attempts. The MDB will attempt to reconnect/rebind every 10 seconds. This log message will repeat every 600 seconds until the condition clears.><Feb 10, 2011 8:56:05 PM EST> <Warning> <EJB> <BEA-010061> <The Message-Driven EJB: MyMDB is unable to connect to the JMS destination: jms/myQueue. The Error was:[EJB:015027]The Message-Driven EJB is transactional but JMS connection factory referenced by the JNDI name: jms/myCF is not a JMS XA connection factory.>


Any help will be appreciated....
Mitesh
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336


#Message-Driven EJB is transactional but JMS connection factory referenced by the JNDI name: jms/myCF is not a JMS XA connection factory

You need to define a connection factory that uses an XA driver. If you are sending messages to a destination in a transaction you need to use two-phase commit. Have a look at how you've configured the connection factory in Weblogic; it should be fairly obvious how to change this (sorry - I haven't used Weblogic since version 6, so can't tell you off the top of my head).


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Chris Jebaraj
Ranch Hand

Joined: Sep 19, 2003
Posts: 34
Hi, Is this problem fixed for you?

I am having the same error in Weblogic and trying to figure out but couldn't. Can you help me by posting the solution or changes you made to Weblogic's JMS queue or connection factory?

Thanks


JebaRaj.<br /> MCP, SCJP 1.5 <br />----------------------------<br /> THOUGH TIMES TEACH TRUST. <br />----------------------------
blue lans
Greenhorn

Joined: Mar 23, 2011
Posts: 4
thanks.I'd like to study here
 
GeeCON Prague 2014
 
subject: Error while using MDB with JMS