Author |
Message
|
terry902 |
Posted: Tue Jun 23, 2015 10:50 pm Post subject: is there any way to know the info of the MQ client |
|
|
Novice
Joined: 10 Oct 2014 Posts: 15
|
hi all,is there any way to know the info of the client who had get the message from queue. such as IP and so on. thanks |
|
Back to top |
|
 |
PaulClarke |
Posted: Wed Jun 24, 2015 12:00 am Post subject: |
|
|
 Grand Master
Joined: 17 Nov 2005 Posts: 1002 Location: New Zealand
|
Are you asking whether you can tell which application (IP address) has the queue open and is consuming messages ? Or are you asking whether, long after a message has been taken off a queue, whether you can tell which client took it?
The answer to the first one is 'yes'. The answer to the second one is 'no', unless you want to do an awful lot of logging of data.
If you describe your question a little more specifically I'm sure we can give you more details on the answer,
Cheers,
Paul. _________________ Paul Clarke
MQGem Software
www.mqgem.com |
|
Back to top |
|
 |
terry902 |
Posted: Wed Jun 24, 2015 12:01 am Post subject: |
|
|
Novice
Joined: 10 Oct 2014 Posts: 15
|
PaulClarke wrote: |
Are you asking whether you can tell which application (IP address) has the queue open and is consuming messages ? Or are you asking whether, long after a message has been taken off a queue, whether you can tell which client took it?
The answer to the first one is 'yes'. The answer to the second one is 'no', unless you want to do an awful lot of logging of data.
If you describe your question a little more specifically I'm sure we can give you more details on the answer,
Cheers,
Paul. |
the second one ,thank you |
|
Back to top |
|
 |
PaulClarke |
Posted: Wed Jun 24, 2015 12:26 am Post subject: |
|
|
 Grand Master
Joined: 17 Nov 2005 Posts: 1002 Location: New Zealand
|
Well, in the base queue manager the answer is no. IBM MQ can process tens of thousands of messages a second. If you wanted to log the getter of every single message then you would be talking a lot of data and it would potentially have a significant impact of performance.
Having said that I don't doubt there are 3rd party vendor products which will long this kind of information for you by installing exits in various places or you yourself could write an API exit which would intercept this information and squirrel it away somewhere.
Cheers,
Paul. _________________ Paul Clarke
MQGem Software
www.mqgem.com |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Jun 24, 2015 4:58 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Why would more than one application be able to get messages from a single queue?
Why wouldn't the application itself log when it read a specific message and some minor information about that message?
As mentioned, MQ doesn't log this information in a historical record for you.
If you fundamentally require this information available at all times, you must be prepared for a large data store and a hit on the performance of MQ. |
|
Back to top |
|
 |
bruce2359 |
Posted: Wed Jun 24, 2015 4:59 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Have you been asked to prove that a message was (or was not) processed? _________________ 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 |
|
 |
exerk |
Posted: Wed Jun 24, 2015 5:49 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
mqjeff wrote: |
Why would more than one application be able to get messages from a single queue? |
Multiple instances of the same application code? _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
 |
tczielke |
Posted: Wed Jun 24, 2015 10:42 am Post subject: |
|
|
Guardian
Joined: 08 Jul 2010 Posts: 941 Location: Illinois, USA
|
You could use accounting statistics, if you also care about recording this for the near future. That is what I use when I want to monitor a queue manager for say a week and see what clients are accessing the queue manager. _________________ Working with MQ since 2010. |
|
Back to top |
|
 |
|