• 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
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

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
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I solved this issue this way:
- JMS MODULES/MY_JMS_RESOURCE/MY_CONECTION_FACTORY
    -Advanced
Then in Transactions, I selected below >> XA Connection Factory[/img] Enabled

Reference:
XA Connection Factory, Page 17 of 31


 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic