Author |
Message
|
Shalini |
Posted: Mon Mar 14, 2005 1:40 am Post subject: mirrorq for MQ5.2 |
|
|
Master
Joined: 30 Apr 2002 Posts: 224 Location: India
|
Hi All,
Do you know any links for mirroq for MQ5.2 .
We require same funtionality in some of our old production machines running in HP and AIX.
Current mirrorq in the site is only for the MQ5.3 (and related libraries).
 |
|
Back to top |
|
 |
clindsey |
Posted: Mon Mar 14, 2005 6:22 am Post subject: |
|
|
Knight
Joined: 12 Jul 2002 Posts: 586 Location: Dallas, Tx
|
mirrorq is dependent on API exits which became generally available with WebSphere MQ 5.3. API exits were introduced with a CSD for WMQ 5.2 Solaris and I believe it was CSD06. Although it was only supported at that time on Solaris, the code would work with other platforms. The bottom line is that I believe you can use it with HP and AIX but it is not officially supported. This is not much of an issue though because nothing is officially supported on 5.2.
Follow the instructions for setup that is in the prologue of mirrorq.c. The setup was the same on 5.2. If it does not work right away, try relinking with the 5.2 mq libs.
Charlie |
|
Back to top |
|
 |
Shalini |
Posted: Wed Mar 30, 2005 7:12 am Post subject: |
|
|
Master
Joined: 30 Apr 2002 Posts: 224 Location: India
|
Hi,
Have any one written the mirrorq in java this is req for our old MQ5.2 system.
I know I cannot write the exit mirror q with java, but can I get the same funtionality /logic but without using trigger
I donot have any C background hence if some one have already done in java can share the logic I will try the same in Java without Trigger ...
If any one can suggest the logic
 |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Mar 30, 2005 1:20 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Why without using a trigger?
You can trigger a java process.
I suggest following scenario (and I have implemented it)
Put the messages on a receiving queue (triggered)
Trigger a java process that has in its property file the distribution list associated with the receiving queue.
Distribute the message from the receiving queue under syncpoint.
Enjoy  |
|
Back to top |
|
 |
kman |
Posted: Wed Mar 30, 2005 11:30 pm Post subject: |
|
|
Partisan
Joined: 21 Jan 2003 Posts: 309 Location: Kuala Lumpur, Malaysia
|
I thought the program was tested for v5.2 CSD04?
Certainly from my copy..
Code: |
This program has been tested with Microsoft Visual C++ 6.0 */
/* and MQSeries V5.2 CSD4 on Windows/2000. |
It works with MQ 5.2... I know it said windows.. but it should be the same with unix. |
|
Back to top |
|
 |
Shalini |
Posted: Thu Mar 31, 2005 4:05 am Post subject: |
|
|
Master
Joined: 30 Apr 2002 Posts: 224 Location: India
|
Hi All,
We have lots of issues using trigger some time Trigger messages going to Dead queue (offcourse we have rectified it), but trigger I feel will make process slower.
Thats why I want to use Java
Already we have lots of MQ Trigger for other purposes I donot want to introduce one more ????
My question is If Iam not using Trigger Which event will envoke my programe and How to make sure that its working and active always ??? |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Mar 31, 2005 5:13 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Without trigger your best bet is a message listener.
It has it's own advantages and pitfalls.
Next would be a loop with a receive with a long timeout.
Can't talk to the trigger problem in 5.2 but we are quite happy with it in 5.3.
You just need to make sure to put your triggered process in the background so that the triggermonitor is not waiting on it's completion.
Enjoy  |
|
Back to top |
|
 |
Shalini |
Posted: Fri Apr 01, 2005 3:23 am Post subject: |
|
|
Master
Joined: 30 Apr 2002 Posts: 224 Location: India
|
Hi,
Thanks for reply
Quote: |
Without trigger your best bet is a message listener. |
We have been using the runmqlsr (mq listerner)...
Is this some other listener .......... What is the syntax etc....
 |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri Apr 01, 2005 3:25 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
He means to write a program that implements a listener pattern - which is that it runs continuously and repeatedly gets from the queue until something tells it to stop. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
kman |
Posted: Mon Apr 04, 2005 6:19 pm Post subject: |
|
|
Partisan
Joined: 21 Jan 2003 Posts: 309 Location: Kuala Lumpur, Malaysia
|
Yes, that is some other listener. Look at Jeff's list of certs, one of them is Java. The JAVA/JMS manuals discusses a lot on message listener. But, hey.. that does not mean message listener can only be in java.
The point is, you need something to listen to the incoming message.  |
|
Back to top |
|
 |
|