ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » Weblogic Integration with MQ

Post new topic  Reply to topic
 Weblogic Integration with MQ « View previous topic :: View next topic » 
Author Message
shavo25
PostPosted: Mon May 24, 2010 4:24 pm    Post subject: Weblogic Integration with MQ Reply with quote

Apprentice

Joined: 16 Feb 2009
Posts: 29

Weblogic 10.3.2, MQ 5.3
JDK 1.6
Getting a warning when deployin my ear on weblogic:
Quote:
<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:
Code:
<foreign-connection-factory name="XA_JMS_MANAGER">
      <local-jndi-name>XA_JMS_MANAGER</local-jndi-name>
      <remote-jndi-name>XA_JMS_MANAGER</remote-jndi-name>
      <password-encrypted xsi:nil="true"></password-encrypted>
    </foreign-connection-factory>


i have defined initial context factory and connection url:
Code:
<initial-context-factory>com.sun.jndi.fscontext.RefFSContextFactory</initial-context-factory>
    <connection-url>file:/D:/Oracle/Middleware/user_projects/domains/ebusiness_domain/wls/mq-jndi-bindings_dev</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
Code:
<resource-ref>
      <res-ref-name>jms/XA_JMS_MANAGER</res-ref-name>
      <res-type>javax.jms.QueueConnectionFactory</res-type>
      <res-auth>Container</res-auth>
      <res-sharing-scope>Shareable</res-sharing-scope>
   </resource-ref>


weblogic.xml
Code:
<resource-description>
      <res-ref-name>jms/XA_JMS_MANAGER</res-ref-name>
      <jndi-name>XA_JMS_MANAGER</jndi-name>
   </resource-description>


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?
Back to top
View user's profile Send private message
shavo25
PostPosted: Mon May 24, 2010 5:50 pm    Post subject: Weblogic Integration with MQ Reply with quote

Apprentice

Joined: 16 Feb 2009
Posts: 29

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

Code:
<DOMAIN_HOME>\lib\com.ibm.mqetclient-5.3.06.jar
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Weblogic Integration with MQ
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.