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 » Tracing mdb XA usage of JMS and datasource resources

Post new topic  Reply to topic
 Tracing mdb XA usage of JMS and datasource resources « View previous topic :: View next topic » 
Author Message
billybong
PostPosted: Fri Nov 24, 2006 6:28 am    Post subject: Tracing mdb XA usage of JMS and datasource resources Reply with quote

Disciple

Joined: 22 Jul 2005
Posts: 150
Location: Stockholm, Sweden

Hi guys!

I've been fiddling around with the extended transaction client in a WAS and I'm unsure if the message driven bean I've developed is using the extended XA transaction or just a regular local MQ transaction.

The setup is as follow:

ETC added to ws.ext.dir (external classpath of the JVM)

Datasource: XA enabled DB2 8.2

JMS connectionfactory:
MQ client over svrconn. The queue manager is installed on the same host as the WAS, but I'm using client connection to simulate a client.

MDB is invoked by listener port bound to a q-destination on the CF and uses container managed transaction. The onMessage() method is specified as transaction required in the deployment descriptor.


So, the MDB gets the message of the queue. It then reads the data and updates a single row in a table and sends a report back to another queue.
The only time I'm requesting a rollback on the context is if the data contains a certain application incorrect value. In case of put and/or update exceptions a rollback is automatic since they are system exceptions.

The rollback and transactions works, but I'm uncertain that MQ is really a part of the container two phased transaction or if it just does a regular local transaction. The reason I'm uncertain is because it does not matter whether I'm checking the "XA enabled" box in the connectionfactory configuration under WAS. Even though it's unchecked my transactions and rollback works as they should. Could this have to do with the fact that my queue manager is on the same machine, even though the connection factory is used in client mode?

Is there a way to trace the XA resources being used, either in WAS or in MQ? Or rather, how do you do it? I can't imagine it's impossible

Thanks in advance!
_________________
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Integration Developer V6.0
IBM Certified System Administrator - WebSphere MQ V6.0
IBM Certified Solution Developer - WebSphere DataPower


Last edited by billybong on Fri Nov 24, 2006 10:23 am; edited 2 times in total
Back to top
View user's profile Send private message Visit poster's website
fjb_saper
PostPosted: Fri Nov 24, 2006 6:41 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

I imagine that if you set trace on for your MQserver you should see the XA calls in the trace file. We usually do see them in the FDC files created due to a poorly compatible XA manager(ATG V 5.x).

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
billybong
PostPosted: Fri Nov 24, 2006 6:47 am    Post subject: Reply with quote

Disciple

Joined: 22 Jul 2005
Posts: 150
Location: Stockholm, Sweden

Thanks saper, I've done some tracing but I dont know exactly what to expect or look for. I'm guessing I should see some XAsomethingsomething, but I'm not sure. The only calls I see are xcsSomethingSomething, do you know what I should be looking for?
_________________
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Integration Developer V6.0
IBM Certified System Administrator - WebSphere MQ V6.0
IBM Certified Solution Developer - WebSphere DataPower
Back to top
View user's profile Send private message Visit poster's website
fjb_saper
PostPosted: Fri Nov 24, 2006 6:52 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Sorry I'm on vacation so I don't have quite the access to the material.
I guess what I meant is that we see the XA calls like X something open, Xsomething prepare commit, X something close without Xsomething commit in between. This leaves an XA transaction hanging etc...

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Tracing mdb XA usage of JMS and datasource resources
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.