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 » General Discussion » MQ ETC client hangs when run under a DTC transaction when

Post new topic  Reply to topic
 MQ ETC client hangs when run under a DTC transaction when « View previous topic :: View next topic » 
Author Message
ljurkovic
PostPosted: Mon Oct 16, 2006 8:46 am    Post subject: MQ ETC client hangs when run under a DTC transaction when Reply with quote

Newbie

Joined: 10 Oct 2006
Posts: 4

I have a ServicedComponent that gets or puts a message to a queue along with some database update that needs to run as one transaction. Everything works fine when the queue manager is up and runing, but if it's down the porgram hangs when trying to open the queue manager. No exception is thrown.
When the same code is run in a non-transactional environment then a correct exception with reason code 2059 is thrown. The same behavior is experienced in both .Net 1.1 and 2.0. The language used is C# and here is the code that access the queue:
Hashtable connectionProperties = new Hashtable();
connectionProperties.Add(MQC.HOST_NAME_PROPERTY, managerHostName);
connectionProperties.Add(MQC.PORT_PROPERTY, int.Parse(managerPort));
connectionProperties.Add(MQC.CHANNEL_PROPERTY, managerChannelName);
MQQueueManager queueManager = new MQQueueManager(managerName, connectionProperties);
Has anybody experienced this behaviour? Is there any other property I could specify in the MQQueueManager constructor I don't know about?

Thanks,
Ljubo
Back to top
View user's profile Send private message
tleichen
PostPosted: Mon Oct 16, 2006 11:27 am    Post subject: Reply with quote

Yatiri

Joined: 11 Apr 2005
Posts: 663
Location: Center of the USA

It sounds like the transactional piece is waiting for a response from the queue manager and is not completing the unit of work until it gets one. Sounds like a possible coding problem with the transaction.
_________________
IBM Certified MQSeries Specialist
IBM Certified MQSeries Developer
Back to top
View user's profile Send private message
ljurkovic
PostPosted: Tue Oct 17, 2006 5:21 am    Post subject: Reply with quote

Newbie

Joined: 10 Oct 2006
Posts: 4

The thing is that this happens only if the queue manager is unavailable and in that case the client should throw an exception. If the queue manager is up and runing then everything works fine. It just looks to me like the client gets confused about the transaction context it was runing under.
Back to top
View user's profile Send private message
tleichen
PostPosted: Tue Oct 17, 2006 9:10 am    Post subject: Reply with quote

Yatiri

Joined: 11 Apr 2005
Posts: 663
Location: Center of the USA

What platforms are we talking about here?
_________________
IBM Certified MQSeries Specialist
IBM Certified MQSeries Developer
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Oct 17, 2006 9:29 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

tleichen wrote:
What platforms are we talking about here?


C# and .NET and DTC only run on, umm... one... platform, really.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
tleichen
PostPosted: Tue Oct 17, 2006 5:36 pm    Post subject: Reply with quote

Yatiri

Joined: 11 Apr 2005
Posts: 663
Location: Center of the USA

Oops! That's what I get for looking at four different posts at once!
_________________
IBM Certified MQSeries Specialist
IBM Certified MQSeries Developer
Back to top
View user's profile Send private message
ljurkovic
PostPosted: Fri Oct 20, 2006 4:45 am    Post subject: MQ ETC client hangs (Solved) Reply with quote

Newbie

Joined: 10 Oct 2006
Posts: 4

It's very hard to find support articles for .Net specific problems, but apparently this was a known issue with MQ v6.0.0.0 Windows client. This problem is described by APAR IC48309:
http://www-1.ibm.com/support/docview.wss?rs=171&uid=swg1IC48309
I needed the fix pack 6.0.1.1 and that got me back in business.
Just in case somebody else runs into the same wall, there you have it.

Cheers,
Ljubo
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General Discussion » MQ ETC client hangs when run under a DTC transaction when
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.