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 » WebSphere Message Broker (ACE) Support » is there any mqsc program/process available for my req?

Post new topic  Reply to topic
 is there any mqsc program/process available for my req? « View previous topic :: View next topic » 
Author Message
sk531
PostPosted: Thu Feb 24, 2011 3:59 pm    Post subject: is there any mqsc program/process available for my req? Reply with quote

Newbie

Joined: 17 Feb 2010
Posts: 9

Hi,
I am wondering that if you guys have any process which takes the message from a Queue (eg: Q1 on QM1 in one machine) and puts to another Queue (eg:Q2 on QM2 on different machine). Please Let me know!!

Below is the flow design

Sending application --> WMB flow connected to a remote QR0 of QM0-->QL1 of QM1 (on machine A) ???? Q2 of QM2(on machine B) --> client conn to MDB

Could you please advice me on this??

Thanks
Back to top
View user's profile Send private message
fatherjack
PostPosted: Thu Feb 24, 2011 4:12 pm    Post subject: Re: is there any mqsc program/process available for my req? Reply with quote

Knight

Joined: 14 Apr 2010
Posts: 522
Location: Craggy Island

sk531 wrote:
I am wondering that if you guys have any process which takes the message from a Queue (eg: Q1 on QM1 in one machine) and puts to another Queue (eg:Q2 on QM2 on different machine).


Errrr Yes. Lots. E.g. MQGET then MQPUT. Or MQInput Node and MQOutput Node.

If you really are struggling with this I suggest you get some basic MQ training.
_________________
Never let the facts get in the way of a good theory.
Back to top
View user's profile Send private message
sk531
PostPosted: Thu Feb 24, 2011 4:57 pm    Post subject: Re: is there any mqsc program/process available for my req? Reply with quote

Newbie

Joined: 17 Feb 2010
Posts: 9

fatherjack wrote:

Errrr Yes. Lots. E.g. MQGET then MQPUT. Or MQInput Node and MQOutput Node.

If you really are struggling with this I suggest you get some basic MQ training.


Thanks for the quick response.
If you use MQGET and MQPUT.. you have to do the run them manually, i want a programm which listens on queue whenever a message comes then process to the sender queue automatically.

Thanks
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Feb 24, 2011 5:43 pm    Post subject: Re: is there any mqsc program/process available for my req? Reply with quote

Grand High Poobah

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

sk531 wrote:
i want a programm which listens on queue whenever a message comes then process to the sender queue automatically.


Well aside from the many support pacs that could do this, and the samples you could easily adapt to do this, you could easily reconfigure WMQ itself to forward any message addressed to one queue to be forwarded to another.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
fatherjack
PostPosted: Fri Feb 25, 2011 12:35 am    Post subject: Re: is there any mqsc program/process available for my req? Reply with quote

Knight

Joined: 14 Apr 2010
Posts: 522
Location: Craggy Island

[quote="sk531"]
fatherjack wrote:
If you use MQGET and MQPUT.. you have to do the run them manually, i want a programm which listens on queue whenever a message comes then process to the sender queue automatically.


Trigger maybe? Or just a long running process maybe? Or MQInput/MQOutput flow maybe?
_________________
Never let the facts get in the way of a good theory.
Back to top
View user's profile Send private message
Mr Butcher
PostPosted: Fri Feb 25, 2011 4:48 am    Post subject: Reply with quote

Padawan

Joined: 23 May 2005
Posts: 1716

why not make Q1 on QM1 a remotequeue pointing to Q2 on QM2? of course you need to connect QM1 and QM2.

Dont see the need for a program or broker flow here ?!? or what have i missed?
_________________
Regards, Butcher
Back to top
View user's profile Send private message
sk531
PostPosted: Fri Feb 25, 2011 9:32 am    Post subject: Re: is there any mqsc program/process available for my req? Reply with quote

Newbie

Joined: 17 Feb 2010
Posts: 9

Vitor wrote:
Well aside from the many support pacs that could do this, and the samples you could easily adapt to do this, you could easily reconfigure WMQ itself to forward any message addressed to one queue to be forwarded to another.

Thank you, working on finding the sample provided by IBM

fatherjack wrote:
Trigger maybe? Or just a long running process maybe? Or MQInput/MQOutput flow maybe?

Thanks, trigger option make sense and working on that

Mr Butcher wrote:
why not make Q1 on QM1 a remotequeue pointing to Q2 on QM2? of course you need to connect QM1 and QM2.

Thanks, If I go for this option, there is no use of having QM1 rather I would connect to QM2 directly ..
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Feb 25, 2011 9:40 am    Post subject: Re: is there any mqsc program/process available for my req? Reply with quote

Grand High Poobah

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

sk531 wrote:
Thank you, working on finding the sample provided by IBM


Try looking on the install media that comes with WMQ. Or on the IBM site. Or the Capitalware site.

sk531 wrote:
Thanks, trigger option make sense and working on that


You'd still need something to trigger.

sk531 wrote:
Thanks, If I go for this option, there is no use of having QM1 rather I would connect to QM2 directly ..


There are solid architectual reasons why you might want an intermediate queue manager; typically if you're putting together a hub & spoke, or if you've got network issues.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Fri Feb 25, 2011 12:23 pm    Post subject: Reply with quote

Poobah

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

Do you intend for your app to connect to one qmgr to put msgs, the connect to the other qmgr to put messages? Is all of this to be in one Unit of Work?

If so, keep in mind that an mq application-managed 2-phase Unit of Work (commit/backout) is based a single connection handle.
_________________
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.
Back to top
View user's profile Send private message
santnmq
PostPosted: Mon Feb 28, 2011 8:49 pm    Post subject: Reply with quote

Centurion

Joined: 11 Jan 2011
Posts: 125

what i understood from your query, You already have MQ setup to send messages from QR0 on QM0 to QL1 on QM1. And now you want all those messages to be transferred to QL2 on QM2.

One basic qn.. Can't you directly send messages from QR0 to QL2? Can't you modify the old MQ setup?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Feb 28, 2011 8:58 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

There is also a part in the intercommunications manual that covers multi-hops.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
sk531
PostPosted: Fri Mar 04, 2011 11:23 am    Post subject: Reply with quote

Newbie

Joined: 17 Feb 2010
Posts: 9

Hello,
My Problem has been solved , Below is the updated flow

Earlier:
Sending application --> WMB flow connected to a remote QR0 of QM0-->QL1 of QM1 (on machine A) ???? Q2 of QM2(on machine B) --> client conn to MDB

Now:
Sending application --> WMB flow connected to a remote QR0 of QM0-->QL1 of QM1 (on machine A) -->TCP/IP adapter(shell script)-->QR2 of QM1 ---> Q2 of QM2(on machine B) --> client conn to MDB


Thank you all for your help on this.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Fri Mar 04, 2011 11:25 am    Post subject: Reply with quote

Poobah

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

Moved to WMB forum
_________________
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.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Mar 04, 2011 7:32 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

sk531 wrote:
Hello,
My Problem has been solved , Below is the updated flow

Earlier:
Sending application --> WMB flow connected to a remote QR0 of QM0-->QL1 of QM1 (on machine A) ???? Q2 of QM2(on machine B) --> client conn to MDB

Now:
Sending application --> WMB flow connected to a remote QR0 of QM0-->QL1 of QM1 (on machine A) -->TCP/IP adapter(shell script)-->QR2 of QM1 ---> Q2 of QM2(on machine B) --> client conn to MDB


Thank you all for your help on this.

Still way complicated
Think:

WMB flow puts to QR0 on QM0 -> QR1 on QM1-> QL2 on QM2...
Again multihop concept in the intercommunications manual
You could also use a JMS output node if there can be no sdr/rcvr connections between the different qmgrs...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
gerdd
PostPosted: Mon Mar 07, 2011 4:22 am    Post subject: Reply with quote

Newbie

Joined: 04 Mar 2011
Posts: 8

Guys (incl. any gals, of course),

this is a newbie asking. A couple of MQ fundamentals - we'll get to MB right after this:

ONE:

Q1 on QM1 -> Q2 on QM2 ... newbies tend to forget that you can only be connected to one QM at a time unless you are an MQ client. So, if you wanted to write a program that uses MQ client to connect to both QMs, fine. I actually know users that have done this (yes!)

But you can't do this with MB, because MB can't be a client - might be able to jippo something with JMS, but that would be a bad hack!

TWO:

With MQ you can get only from your local QM, but you can put to any remote QM. No exceptions! But this one can be done with MB as well: To do Q1 on QM1 -> Q2 on QM2 you need to run on a broker on QM1. Then it is MQInput -> MQOutput specifying Q1 in the MQInput node and Q2 on QM2 in the MQOutput node.

By the way, that is the reason why the MQOutput node lets you specify a queue manager, but the MQInput node doesn't.

No-one needs triggers or TCP/IP or JMS or anything fancy for this. Only thing is QM1 must know how to find QM2. (Hint: it is done with channels)
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 » WebSphere Message Broker (ACE) Support » is there any mqsc program/process available for my req?
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.