This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Weblogic Integration with MQ issue" Watch "Weblogic Integration with MQ issue" New topic
Author

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
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?
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.


 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Weblogic Integration with MQ issue
 
Similar Threads
JMS, WebSphere, JNDI = Nightmare
MDB deployed in WebLogic and Queues in IBM MQ
JMS and Websphere 6
Unknown JMS Destination type
JMS 1.1 + Weblogic + Websphere MQ + XATransactions