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 » General IBM MQ Support » Need to implement a .Net Listener

Post new topic  Reply to topic
 Need to implement a .Net Listener « View previous topic :: View next topic » 
Author Message
ooberoi
PostPosted: Tue Jan 08, 2013 11:50 am    Post subject: Need to implement a .Net Listener Reply with quote

Newbie

Joined: 02 Jan 2013
Posts: 3

I have successfully tested a utility that writes and reads a message to the queue in .Net using Webshpere MQ.

What I would like to do now is to automate the process such that it automatically listens for a message that appears on the queue.

Could someone send me a sample code how this can be done?

Thank You,

Obi
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Tue Jan 08, 2013 12:01 pm    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Google is your friend.

http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=%2Fcom.ibm.mq.csqzal.doc%2Ffg13830_.htm
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Tue Jan 08, 2013 12:12 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

lancelotlinc wrote:
Google is your friend.

http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=%2Fcom.ibm.mq.csqzal.doc%2Ffg13830_.htm


That's a terrible URL to point at.

There's no reason to use a trigger monitor.

Google will surely help ooberoi find the very recent message thread that also discussed .NET and trigger monitors.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Tue Jan 08, 2013 12:17 pm    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

He doesn't say what version of MQ he's using. I don't know how terrible it could be. If I were Google, I would offer more than just one link.

My Hot Taughty has not arrived yet.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Tue Jan 08, 2013 12:30 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

lancelotlinc wrote:
He doesn't say what version of MQ he's using. I don't know how terrible it could be.


And yet if it was mentioned that he or she was using v6.0, you would be the first person to say that he or she needed to migrate to a supported version.
Back to top
View user's profile Send private message
ooberoi
PostPosted: Tue Jan 08, 2013 12:33 pm    Post subject: Reply with quote

Newbie

Joined: 02 Jan 2013
Posts: 3

Sorry, the WebSphere MQ version is 7.0.1.

You are right, Google is my friend too , but I couldn't find the solution I am looking for. There was a thread or two, but with incomplete solutions.

As a last resort, I came to this forum. I hope I won't be dissapointed.!

Cheers,

Ob
Back to top
View user's profile Send private message
bruce2359
PostPosted: Tue Jan 08, 2013 12:44 pm    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9470
Location: US: west coast, almost. Otherwise, enroute.

ooberoi wrote:
I hope I won't be dissapointed.!

No, you won't regret it. Tuesdays are bickering days. Try us on any other day of the week.

No they're not. Yes, they are. No, they're not. (repeat)
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.


Last edited by bruce2359 on Tue Jan 08, 2013 12:44 pm; edited 1 time in total
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Jan 08, 2013 12:44 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

ooberoi wrote:
As a last resort, I came to this forum. I hope I won't be dissapointed.!


Google should have found you the thread in here my most worthy associate is talking about, as well as a lot of other relevant material. You'll find a custom Google search box top right of this page for your convenience.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
mvic
PostPosted: Tue Jan 08, 2013 12:46 pm    Post subject: Re: Need to implement a .Net Listener Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

ooberoi wrote:
What I would like to do now is to automate the process such that it automatically listens for a message that appears on the queue.

Could someone send me a sample code how this can be done?

There is a sample that gets a message. "Getting a message" can also be expressed as "listening" for a message. Look under MQINST\tools\dotnet\samples\cs for nmqsget.cs Is that what you were looking for?
Back to top
View user's profile Send private message
ooberoi
PostPosted: Tue Jan 08, 2013 3:55 pm    Post subject: Reply with quote

Newbie

Joined: 02 Jan 2013
Posts: 3

Thanks mvic.
The example is certainly good. I am thinking of creating a console app which can call this utility (the one you mentioned) and run it until something breaksdown. We can decide either to send an email, log the message and/or keep running using a windows scheduler.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Jan 09, 2013 4:08 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

ooberoi wrote:
Thanks mvic.
The example is certainly good. I am thinking of creating a console app which can call this utility (the one you mentioned) and run it until something breaksdown. We can decide either to send an email, log the message and/or keep running using a windows scheduler.


It's a normal idea.

But it's not a good one.

You should modify the sample to do what you actually need to do, instead.

Becuase the sample only does very small things, and is by no means intended to be used in production manner.
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 » General IBM MQ Support » Need to implement a .Net Listener
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.