Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Error while using MDB with JMS

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks.I'd like to study here
 
I will open the floodgates of his own worst nightmare! All in a tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic