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 » ClassCast Exception while using MQBEGIN Call

Post new topic  Reply to topic
 ClassCast Exception while using MQBEGIN Call « View previous topic :: View next topic » 
Author Message
amitmats
PostPosted: Wed Dec 05, 2001 4:54 am    Post subject: Reply with quote

Newbie

Joined: 04 Dec 2001
Posts: 1

hi all iam using DB26.1 as database and i have added DB2SWIT.dll file as external Resource manager to MQ Server as i want my queue manager to do 2 phase commit.
I have made this code:-

System.out.println("creating XA datasource ...");
// com.ibm.db2.jdbc.app.stdext.udb.DB2XADataSource ds = new com.ibm.db2.jdbc.app.stdext.udb.DB2XADataSource();
System.out.println("created XA datasource ...");
ds.setDatabaseName("MQ");
System.out.println("database name set for XA datasource ...");

com.ibm.db2.jdbc.app.stdext.javax.sql.XAConnection xacon = ds.getXAConnection("db2admin","db2admin");
System.out.println("creating xa connection ...");
System.out.println("XAResource value"+xacon.getConnection());

this does'nt give me any error however
when i use this

MQQueueManager qmgr=new MQQueueManager("QM1");
Connection con=qmgr.getJDBCConnection((javax.sql.XADataSource)ds)

this line it is giving ClassCastException.

ps* Iam using latest MA88 zip
pls give sol'n

Thanks in advance
Amit
Back to top
View user's profile Send private message Visit poster's website
middlewareonline
PostPosted: Fri Dec 07, 2001 8:30 am    Post subject: Reply with quote

Acolyte

Joined: 09 Jul 2001
Posts: 73

I would like you to enable XA Trace in the XA Stanza of the ini file. Looks like the connection handle is not being returned from the queue manager. Also, see if you have any errors being reposrted when you bring up the queue manager that points to XA errors.

Rajesh


_________________
---------------------------------------------
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 » ClassCast Exception while using MQBEGIN Call
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.