Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error while using MDB with JMS

 
mitforu patel
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

#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).

 
Chris Jebaraj
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
blue lans
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks.I'd like to study here
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic