• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Weblogic Integration with MQ issue

 
Ranch Hand
Posts: 63
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Weblogic 10.3.2, MQ 5.3
JDK 1.6
Getting a warning when deployin my ear on weblogic:

<Warning> <JMSPool> <BEA-169807> <There was an error while making the initial connection to the JMS resource named XA_JMS_MANAGER from within an EJB or a servlet. The server will attempt the connection again later. The error was javax.jms.JMSException: MQJMS1068: failed to obtain XAResource>



NOTE: MQ and Weblogic reside on different servers


Websphere MQ JMS jar files are on weblogic domain classpath

On weblogic console i have configured a foreign jms server when creating jms module
In my jms module i have a foreign connection factory:


i have defined initial context factory and connection url:

.bindings file and MQ queues were already created for me

In web application, defined resource reference via web.xml and weblogic.xml
web.xml


weblogic.xml


On weblogic console, diagnostics i can see the resource in the JNDI tree.


I have replicated another developers environment, so i cant see whats wrong here.
Anyone?
 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Shane,

When you are integrating WL with MQ. you have to create BINDING file for MQ and WL integration.

This BINDING file contains the MQ configuration details [Queue name,hostname,port,channel name,channel type,Listen mode , etc..]

to create the .binding file you have to use the JMSAdmin command utility.

once you have created the .binding file you have to place it in the physical server and mention the <.binding> file for the Connection Factory's JNDI settings . So the MQ configurations will be loaded from the .binding file and the connection will be established.
 
Shane Lee
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the reply Joseph, bindings file was already generated for me and copied over.

Problem was:
My fault i did not have the ETC library on the weblogic classpath.


 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic