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 » XAResource.start blocking

Post new topic  Reply to topic
 XAResource.start blocking « View previous topic :: View next topic » 
Author Message
tfennelly
PostPosted: Thu Oct 21, 2010 3:18 am    Post subject: XAResource.start blocking Reply with quote

Newbie

Joined: 20 May 2009
Posts: 9

Hi there.

I have an application using the WMQ JCA Adapter. It is:

1. Receiving messages from queue "A" through the JCA inflow.
2. Connecting and sending to another message to queue "B".

All works fine when using the regular (non XA) connection factory, but when using the XA connection factory, enlisting the XAResource from the XA Session in the active transaction results in a thread block (see stack below) in the XAResource.start.

I'm testing on WMQ 7 (with the 7.0.1.3 patch). I think () I've also disabled connection sharing for the channel. I say "think" because I'm not totally sure which config setting does this - I changed the Default Bind Type (on the "Extended" config on the queue manager properties) from shared to isolated. Have a feeling this is not the correct setting

Just wondering if anyone has seen this before and if there was a solution for it. I'm sure it's something stupid I'm doing.

Code:

Name: WorkManager(2)-3
State: WAITING on com.ibm.mq.jmqi.remote.internal.RemoteHconn$AsyncTshLock@19fa786
Total blocked: 0  Total waited: 42

Stack trace:
java.lang.Object.wait(Native Method)
java.lang.Object.wait(Object.java:474)
com.ibm.mq.jmqi.remote.internal.RemoteHconn.receiveAsyncTsh(RemoteHconn.java:1803)
com.ibm.mq.jmqi.remote.internal.RemoteHconn.receiveTSH(RemoteHconn.java:1093)
com.ibm.mq.jmqi.remote.internal.RemoteHconn.receiveMQIFlow(RemoteHconn.java:1603)
com.ibm.mq.jmqi.remote.internal.RemoteFAP.xa_start(RemoteFAP.java:9202)
com.ibm.mq.jmqi.JmqiXAResource.start(JmqiXAResource.java:788)
com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.enlistResource(TransactionImple.java:899)
com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.enlistResource(TransactionImple.java:510)
Back to top
View user's profile Send private message
tfennelly
PostPosted: Thu Oct 21, 2010 4:33 am    Post subject: Reply with quote

Newbie

Joined: 20 May 2009
Posts: 9

OK... sorry... I think I found the trick with the channels and setting the sharing... I created a Server Connection Channel in the Advanced settings on the Queue Manager, set the "Sharing Conversations" setting (in Extended config) to 1. I then set the new channel as the channel on my XA connection factory.

Same result however... JmqiXAResource.start thread blocks.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Oct 21, 2010 10:49 am    Post subject: Reply with quote

Grand High Poobah

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

Can you show the code? (use code tags)
_________________
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 » XAResource.start blocking
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.