|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
C# MQQueueManager.Disconnect() ending SESSION in .NET |
« View previous topic :: View next topic » |
Author |
Message
|
CT Developer |
Posted: Thu Mar 08, 2007 5:06 am Post subject: C# MQQueueManager.Disconnect() ending SESSION in .NET |
|
|
Novice
Joined: 06 Nov 2006 Posts: 17
|
It looks like my SESSION is ended when I make the call to MQQueueManager.Disconnect from a method in a .NET Assembly.
Is there any way to disconnect the MQQueueManager without ending my SESSION?
I hope this is the currect forum to ask this question.
If not, please let me know where to ask it.
Regards,
Chuck |
|
Back to top |
|
 |
kevinf2349 |
Posted: Thu Mar 08, 2007 7:02 am Post subject: Re: C# MQQueueManager.Disconnect() ending SESSION in .NET |
|
|
 Grand Master
Joined: 28 Feb 2003 Posts: 1311 Location: USA
|
CT Developer wrote: |
It looks like my SESSION is ended when I make the call to MQQueueManager.Disconnect from a method in a .NET Assembly.
Is there any way to disconnect the MQQueueManager without ending my SESSION?
I hope this is the currect forum to ask this question.
If not, please let me know where to ask it.
Regards,
Chuck |
I am not sure I follow you here. What do you mean by SESSION? Disconnect will close all the MQ objects associated with that connection handle. But I am not sure what you mean by SESSION. MQDISC is usally one of the last things a program does so maybe there is nothing after the MQDISC for your program to do and it is simply ending?
MQDISC does not normally terminate anything within the program but the connection as far as I know. |
|
Back to top |
|
 |
CT Developer |
Posted: Thu Mar 08, 2007 8:25 pm Post subject: |
|
|
Novice
Joined: 06 Nov 2006 Posts: 17
|
After calling MQQueueManager.Disconnect() my ASP.NET page behaves like the session has expired. I get sent back to my default starting Web page. I am just wondering what the MQQueueManager.Disconnect method does.
By the way, Ajax figures in here somehow too.
Regards,
Chuck |
|
Back to top |
|
 |
CT Developer |
Posted: Sun Mar 11, 2007 11:00 am Post subject: "no source code available..." Message |
|
|
Novice
Joined: 06 Nov 2006 Posts: 17
|
I am using Microsoft Visual Studio 2003 to step through my MQAPI application code. I created a class in C# to format, send and receive messages to my MQ broker. When I am done and get to the call to disconnect the MQ Queue Manager, I get a message saying "There is no source code available for the current location." This in itself is fine (although I do not know why I do not see it for other calls in to the amqmdnet.dll assembly). I just tap F10 (step over) to continue. However, the system acts like I tapped F5 (continue). If I put a breakpoint in my method after the call to disconnect the MQ Queue Manager, the debugger will not stop.
I am using C# managed code for my application. If this is not the correct forum for this query, please redirect me.
Why do I get the above message ("There is no source...") here and not at any other MQ calls?
And, more importantly, why doesn't control resume at the following line of code?
Regards,
Chuck |
|
Back to top |
|
 |
whiting |
Posted: Mon Mar 12, 2007 10:07 am Post subject: |
|
|
Acolyte
Joined: 26 Mar 2002 Posts: 64 Location: Greenville, SC
|
If you're using managed code, is the connection passed to you? i.e. do you create the queue manager object, or is is passed to your code.
//Bill |
|
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
|
|
|
|