File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes BEA/Weblogic and the fly likes Weblogic Integration with MQ issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Weblogic Integration with MQ issue" Watch "Weblogic Integration with MQ issue" New topic

Weblogic Integration with MQ issue

Shane Lee
Ranch Hand

Joined: Mar 19, 2005
Posts: 63
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


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.
Joseph Antoine Raja
Ranch Hand

Joined: Feb 01, 2010
Posts: 32
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

Joined: Mar 19, 2005
Posts: 63
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.

I agree. Here's the link:
subject: Weblogic Integration with MQ issue
It's not a secret anymore!