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 » Transaction with Oracle

Post new topic  Reply to topic
 Transaction with Oracle « View previous topic :: View next topic » 
Author Message
arnabkundu
PostPosted: Wed Dec 19, 2001 4:10 am    Post subject: Reply with quote

Newbie

Joined: 25 Sep 2001
Posts: 3

I am having the following exception when i try to call getJDBCConnection in MQQueueManager
com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2012
at com.ibm.mq.MQSESSION.XAREGISTER(MQSESSION.java:482)
at com.ibm.mq.XAtoJTA.helpGetConnection(XAtoJTA.java:385)


Can anyone please help
at com.ibm.mq.MQQueueManager.getJDBCConnection(MQQueueManager.java:226)
at com.ibm.mq.MQQueueManager.getJDBCConnection(MQQueueManager.java:189)

My code is :

oracle.jdbc.xa.client.OracleXADataSource ds = new oracle.jdbc.xa.client.OracleXADataSource();
ds.setUser("mqmq");
ds.setPassword("change_on_install");
ds.setURL("jdbc:oracle:thin:localhost:DATABASE");
MQQueueManager qMgr ......
Connection con = qMgr.getJDBCConnection((javax.sql.XADataSource)ds);


My qm.ini file is

Name=Oracle DATABASE
SwitchFile=/opt/mqm/samp/xatm/ora8swit
XAOpenString=Oracle_XA+Acc=P/MQMQ/change_on_install+SesTm=35+LogDir=/tmp/ora.log+DB=DATABASE

[ This Message was edited by: arnabkundu on 2001-12-19 04:10 ]

[ This Message was edited by: arnabkundu on 2001-12-19 04:20 ]
Back to top
View user's profile Send private message
middlewareonline
PostPosted: Mon Dec 24, 2001 11:26 am    Post subject: Reply with quote

Acolyte

Joined: 09 Jul 2001
Posts: 73

does the queue manger comes up allright with XA? Check the trace file from XA to see if QM is able to get a connection handle.

MiddlewareOnline.COM

_________________
---------------------------------------------
IBM & SUN (J2EE) Certified Consultants,
http://www.MiddlewareOnline.com
A "SARVAM" Online Portal
http://www.SARVAM.com
---------------------------------------------
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Transaction with Oracle
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.