Posted: Tue Jan 17, 2006 7:33 pm Post subject: MQ Begin Error Code 2121
Newbie
Joined: 17 Jan 2006 Posts: 1
Hi All,
I tried to do two phase commit with MQ5.2 and Solaris. After a long struggle for setting up XA Resource and XA String , the quemanager was started without any error.
But when the command qmgr.begin() executes I'm getting the error 2121
MQRC_NO_EXTERNAL_PARTICIPANTS
The way I'm getting the db connection.
OracleXADataSource ds = new OracleXADataSource();
ds.setUser("bccrad");
ds.setPassword("bccrad");
ds.setURL("jdbc:oracle:thin:@202.60.218.100:1521:RADDEV");
Connection con = qMgr.getJDBCConnection((javax.sql.XADataSource)ds);
qMgr.begin(); - Error 2121
If I comment the qmgr.begin() the I can able get the db connection by using qmanager object and i can insert a record without any error.
I believe qmanager can able to connect oracle and return a db connection with its object.
Joined: 11 Jan 2007 Posts: 4 Location: Sofia,Bulgaria, EU
2121 MQRC_NO_EXTERNAL_PARTICIPANTS means that your configuration is invalid.check your oracle open string in qm.ini
"XAOpenString"="Oracle_XA+SqlNet=orcl+Acc=P/user/password+SesTm=35+LogDir=/logdir+threads=false+dbgFl=0x15"
read about http://download-uk.oracle.com/docs/cd/B19306_01/appdev.102/b14251/adfns_xa.htm
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