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 API Support » reconnecting to MQ using xms.net

Post new topic  Reply to topic
 reconnecting to MQ using xms.net « View previous topic :: View next topic » 
Author Message
simon
PostPosted: Wed Apr 20, 2011 3:19 am    Post subject: reconnecting to MQ using xms.net Reply with quote

Novice

Joined: 13 Aug 2009
Posts: 16

WOndering if anyone has come across a simliar problem as this.
set up connection factor in .net3.5 windows service using mq client tools 7.0.1.4
consume some message fromteh que using ImessageConsumer.consume();

then i cause the MQ connection to close
iMessageconsumer.close()
IConnection.close()
IConnectionFactory = null

wait a period of time and try to reconnect using hte same connectiong method that worked the first time. This all works with out an execption. Until i try and consume the next message on the Queue . at which point the sercices just hangs.

My question is there and flaw in teh logic for how to do this or ???
Back to top
View user's profile Send private message
mvic
PostPosted: Wed Apr 20, 2011 3:07 pm    Post subject: Re: reconnecting to MQ using xms.net Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

simon wrote:
net3.5 windows service

Are you using XMS? WCF?

A hang sounds like a defect, in any language or environment.

I suggest you collect traces, and open a PMR.
Back to top
View user's profile Send private message
shashikanth_in
PostPosted: Wed Apr 20, 2011 7:47 pm    Post subject: Reply with quote

Centurion

Joined: 26 Feb 2009
Posts: 123

Simon is using XMS .NET. 3 questions to ask:
1) Is this specific to .NET Framework 3.5?
2) Does this happen only when XMS .NET is used in a service. Other words does it work when running as a console application?
3) What does the logs say?

PMR is a better option.
Back to top
View user's profile Send private message
simon
PostPosted: Wed Apr 27, 2011 6:05 am    Post subject: Reply with quote

Novice

Joined: 13 Aug 2009
Posts: 16

) Is this specific to .NET Framework 3.5?
no means to easily test other and this is the framework rest of the systems are built on

2) Does this happen only when XMS .NET is used in a service. Other words does it work when running as a console application?
happens in both a console and winforms app

3) What does the logs say?
nothin that i can see the app just sits there and never returns and error. Xms logs dont have any mention of an error either.

This seems like something that should be easy to do.
Connection create to MQ
MQ connection broken for some reason. Server reboots/ network problems
Then reconnect to the MQ when it comes back up but with out having to manually restart the .net application
Back to top
View user's profile Send private message
mvic
PostPosted: Wed Apr 27, 2011 6:25 am    Post subject: Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

simon wrote:
This seems like something that should be easy to do.

Agreed.

Did you open the PMR? What did IBM say?
Back to top
View user's profile Send private message
simon
PostPosted: Wed Apr 27, 2011 6:28 am    Post subject: Reply with quote

Novice

Joined: 13 Aug 2009
Posts: 16

havent done yet want to see if i was missing something in the configuration or that the was a work around that some one had found.

but what ever i search for on google gives me no help as it all prtobems in older versions of XMs.net and i'm using the latest MQ client tools 7.0.14..
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 » IBM MQ API Support » reconnecting to MQ using xms.net
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.