|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
How to track MQ transactions ? |
« View previous topic :: View next topic » |
Author |
Message
|
smdavies99 |
Posted: Sun Nov 06, 2016 11:02 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
no. you can only read from a LOCAL Queue or an ALIAS Queue that points to a LOCAL Queue;
Using an Alias Queue for Pub/Sub simply allows you to publish to a Topic.
You then create a subsctiption to that topic that points to a LOCAL Queue. It is this Queue that your application would read from.
Create another subscription to the same topic for your monitoring/backup. Point this subscription to another LOCAL Queue and you are good to go.
It is really quite simple to implement and test.
1) Create a Toipic
2) Create and Alias Queue with the mode set to Topic and the topic name the create topic
3) Create two LOCAL queus.
4) Create Two subscriptions to the Topic and set the destination to the local Queues
5) Write a mesage to the Alias queue and observe what happens. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
bruce2359 |
Posted: Sun Nov 06, 2016 3:03 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9472 Location: US: west coast, almost. Otherwise, enroute.
|
Muhammad Haider wrote: |
Reason for 90 days backup as given by client is that they want to maintain it for Tracking. For example if the client sends a particular message with message id abc and the external party did not receive it then he should be able to tell from his records that atleast there was no issue with that message id from his side. So keeping track of Queue/Channel activity will later help him to find if there was or what was the issue at his side. |
When the external party complains that it did not receive message id 'abc', then what? What is the resolution? How will the transaction be replayed? Or, is this all to affix blame?
An MQ message is rarely the source of a transaction. Rather, it is the results of some other input task or activity that results in a message that drives some other process or processes. The best-practice is for developers to capture the data that initiated the transaction in the first place. _________________ 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 |
|
 |
Vitor |
Posted: Mon Nov 07, 2016 5:54 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Muhammad Haider wrote: |
Is there a way I can perform a GET operation on an alias queue whose base type is topic (by setting some alias queue, topic or subscription properties) ? So that I can read what another app has PUT on this queue (or published on the base topic) ? |
Of course not.
And pedantically no app has PUT anything to that queue. They've just published something on a topic that's matched.
You can however, obtain the same effect by subscribing to the topic. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
zpat |
Posted: Mon Nov 07, 2016 6:52 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
You can only put to a topic alias queue.
However you can define an administrative subscription matching the same topic string, where the destination is a local queue, and then get from that queue. _________________ Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error. |
|
Back to top |
|
 |
|
|
|
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
|
|
|
|