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 » Oracle X/A No participating resource managers registered

Post new topic  Reply to topic
 Oracle X/A No participating resource managers registered « View previous topic :: View next topic » 
Author Message
saumilad
PostPosted: Sun Sep 25, 2005 11:56 pm    Post subject: Oracle X/A No participating resource managers registered Reply with quote

Newbie

Joined: 25 Sep 2005
Posts: 2

Hello Friends !!

Im new to MQ Series Java Programming, Im getting an error when im trying to use the X/A facility available in MQ Series with Oracle. Here is the Error im getting when tryin to run this code.

ERROR :

MQJE001: Completion Code 2, Reason 2121
null 2121 2
com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2121

MQRC_NO_EXTERNAL_PARTICIPANTS
No participating resource managers registered.

Its gives the error when executing PIQmgr.begin();

Its seems the Resource Manager is not Registerd. How can i get rid of this problem. Here is the code


CODE:

// THE Oracle Connection String

String ip = "10.0.10.100";
String port = "1521";
String serv = "Test.kccbbank.world";
String sid = "test";
String user = "scott";
String pass = "tiger";

Class.forName("oracle.jdbc.driver.OracleDriver");

String connect_string = "jdbc:oracle:thin:@(";
connect_string += "description=(";
connect_string += "address_list=(";
connect_string += "address=";
connect_string += "(protocol=tcp)";
connect_string += "(host="+ ip +")";
connect_string += "(port=" + port+ ")";
connect_string += ")";
connect_string += ")";
connect_string += "(source_route=yes)";
connect_string += "(connect_data=";
connect_string += "(service_name=" + serv + ")";
connect_string += "(sid=" + sid + ")";
connect_string += "))";
System.out.println(connect_string);


//Create XA Data Source


oxads1 = new OracleXADataSource();
oxads1.setURL(connect_string);










MQQueueManager PIQmgr = new MQQueueManager("PIQMGR");

System.out.println("QueueManager Created");


Connection con = PIQmgr.getJDBCConnection(oxads1,"scott","tiger");

// PIQmgr.getJDBCConnection(oxads1);

System.out.println("Connection Created");

Statement st = con.createStatement();

PIQmgr.begin();

System.out.println("3");

int PIOpenopt = MQC.MQOO_INPUT_EXCLUSIVE;

MQQueue PIQueue = PIQmgr.accessQueue("PI.INCOMMING",PIOpenopt);


MQMessage PIRetMsg = new MQMessage();

MQGetMessageOptions piGmo = new MQGetMessageOptions();
piGmo.options = MQC.MQGMO_SYNCPOINT;

PIQueue.get(PIRetMsg,piGmo);

System.out.println(PIRetMsg.readUTF());
PIRetMsg.getDataLength();

PIQmgr.backout();
PIQueue.close();
PIQmgr.disconnect();
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Oracle X/A No participating resource managers registered
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.