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);
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
---------------------------------------------
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