|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
.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 |
|
 |
Vitor |
Posted: Wed Jul 31, 2013 7:55 am Post subject: Re: .NET and Distributed Transaction |
|
|
 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 |
|
 |
hughson |
Posted: Wed Jul 31, 2013 9:18 am Post subject: Re: .NET and Distributed Transaction |
|
|
 Padawan
Joined: 09 May 2013 Posts: 1959 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 |
|
 |
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 |
|
 |
hughson |
Posted: Wed Jul 31, 2013 11:54 pm Post subject: |
|
|
 Padawan
Joined: 09 May 2013 Posts: 1959 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 |
|
 |
|
|
 |
|
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
|
|
|
|