• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Error while using MDB with JMS

 
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
 
Bartender
Posts: 10336
Hibernate Eclipse IDE 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).

 
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
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks.I'd like to study here
 
Blueberry pie is best when it is firm and you can hold in your hand. Smell it. And smell this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!