Posted: Wed Apr 20, 2011 3:19 am Post subject: reconnecting to MQ using xms.net
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 ???
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?
) 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
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..
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