|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
![Reply to topic](templates/DAJ_Glass/images/lang_english/reply.gif) |
|
.NET and Distributed Transaction |
« View previous topic :: View next topic » |
Author |
Message
|
macpak |
Posted: Wed Jul 31, 2013 7:34 am Post subject: .NET and Distributed Transaction |
|
|
Newbie
Joined: 31 Jul 2013 Posts: 2
|
Hello,
In our environment, we have a system that connects to the mq server, gets messages, processes them and saves data in ms sql db. We want all it go inside a distributed transaction. As a coordinator, we use MSDTC.
In our code, we open TransactionScope, create a connection,session,destination,consumer and then we receive a message. We do it all the time, 5 times a second or so. However, after some time of running, we get an exception:
Code: |
XMS attempted to close a WebSphere MQ destination, but encountered an error. The destination might already be closed, or another thread may be performing an MQGET while close() is called.
Use the linked exception to determine the cause of this error. You may be able to perform the close() later.
at IBM.XMS.Client.WMQ.WmqMessageConsumer.CheckNmqiCallSuccess(String messageid, String insert, String insertKey, Int32 completionCode, Int32 reason, NmqiEnvironment environment, String probeid, WmqCommonConnection commonConnection, Hconn hconn)
at IBM.XMS.Client.WMQ.WmqConsumerShadow.Close()
at IBM.XMS.Client.WMQ.WmqMessageConsumer.Close()
at IBM.XMS.Client.Impl.XmsMessageConsumerImpl.Close()
at IBM.XMS.Client.Impl.XmsMessageConsumerImpl.Dispose()
Linked Exception : CompCode: 2, Reason: 6109
|
We don't know what is going on, because we don't use threading here. Can anyone help ? |
|
Back to top |
|
![](templates/DAJ_Glass/images/spacer.gif) |
Vitor |
Posted: Wed Jul 31, 2013 7:55 am Post subject: Re: .NET and Distributed Transaction |
|
|
![](images/avatars/905340816499abc1cdfb07.jpg) Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
macpak wrote: |
Can anyone help ? |
So what does this yield when you look:
macpak wrote: |
Use the linked exception to determine the cause of this error |
_________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
![](templates/DAJ_Glass/images/spacer.gif) |
hughson |
Posted: Wed Jul 31, 2013 9:18 am Post subject: Re: .NET and Distributed Transaction |
|
|
![](images/avatars/810794940518bb946528b3.jpg) Padawan
Joined: 09 May 2013 Posts: 1917 Location: Bay of Plenty, New Zealand
|
macpak wrote: |
Code: |
Linked Exception : CompCode: 2, Reason: 6109 |
We don't know what is going on, because we don't use threading here. Can anyone help ? |
Link to Reason: 6109 _________________ Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software |
|
Back to top |
|
![](templates/DAJ_Glass/images/spacer.gif) |
macpak |
Posted: Wed Jul 31, 2013 11:26 am Post subject: |
|
|
Newbie
Joined: 31 Jul 2013 Posts: 2
|
I've checked the reason, but it doesn't make much sense for me. It says
Quote: |
The connection reference is null. A connection to an ImqQueueManager object is required |
which doesn't make sense for me, because I get the exception when I'm trying to dispose the consumer. I was able to receive a message and then when I want to clean up my connection disappears ? |
|
Back to top |
|
![](templates/DAJ_Glass/images/spacer.gif) |
hughson |
Posted: Wed Jul 31, 2013 11:54 pm Post subject: |
|
|
![](images/avatars/810794940518bb946528b3.jpg) Padawan
Joined: 09 May 2013 Posts: 1917 Location: Bay of Plenty, New Zealand
|
macpak wrote: |
I've checked the reason, but it doesn't make much sense for me. It says
Quote: |
The connection reference is null. A connection to an ImqQueueManager object is required |
which doesn't make sense for me, because I get the exception when I'm trying to dispose the consumer. I was able to receive a message and then when I want to clean up my connection disappears ? |
If you believe you do still have a connection reference at the time your application is trying to close the consumer (which must have a connection reference in order to be used) then this may be worth reporting via a PMR.
Cheers
Morag _________________ Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software |
|
Back to top |
|
![](templates/DAJ_Glass/images/spacer.gif) |
|
|
![Reply to topic](templates/DAJ_Glass/images/lang_english/reply.gif) |
|
Page 1 of 1 |
|
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
|
|
|
|