Author |
Message
|
rajesh_avrs |
Posted: Sun Apr 27, 2003 7:51 am Post subject: PCF Commands in Java |
|
|
Apprentice
Joined: 18 May 2001 Posts: 31
|
Hi all,
I would like to know the different ways of interpreting an MQSeries Event Message. Let us say, I am writing a monitoring tool and if my application need to read the data out of the Event Messsage, what is the API that I should use? Is my assumption that Event Message can be interpreted using PCF APIs? What's the corresponding support pac?
Thanks in advance. |
|
Back to top |
|
 |
rajesh_avrs |
Posted: Sun Apr 27, 2003 8:20 am Post subject: |
|
|
Apprentice
Joined: 18 May 2001 Posts: 31
|
I would like to add, if somebody has a sample program to interpret and print event message header and data, can you please pass it on to me?
Thanks. _________________ ****************
MQSeries is cool
**************** |
|
Back to top |
|
 |
blowbeat |
Posted: Mon Apr 28, 2003 3:27 am Post subject: |
|
|
Apprentice
Joined: 02 Apr 2002 Posts: 49
|
|
Back to top |
|
 |
rajesh_avrs |
Posted: Mon Apr 28, 2003 3:34 am Post subject: |
|
|
Apprentice
Joined: 18 May 2001 Posts: 31
|
Jan, thanks for the reply.
There is a suppport pac. But I am specially looking for some Java code for reading Event messages.
Thanks. _________________ ****************
MQSeries is cool
**************** |
|
Back to top |
|
 |
rajesh_avrs |
Posted: Tue Apr 29, 2003 4:54 am Post subject: |
|
|
Apprentice
Joined: 18 May 2001 Posts: 31
|
Hello? Any responses? _________________ ****************
MQSeries is cool
**************** |
|
Back to top |
|
 |
clindsey |
Posted: Tue Apr 29, 2003 6:58 am Post subject: |
|
|
Knight
Joined: 12 Jul 2002 Posts: 586 Location: Dallas, Tx
|
The supportpac for the java pcf interface is MS0B. It has samples but I don't recall if it specifically has one for event messages.
Charlie |
|
Back to top |
|
 |
rajesh_avrs |
Posted: Tue Apr 29, 2003 9:52 pm Post subject: |
|
|
Apprentice
Joined: 18 May 2001 Posts: 31
|
I have gone thru the PCF functionality and realized that you can use PCF only to query the health/attributes of a particular MQSeries object. My requirement is to process the event messages. For example, if I have enabled Channel events, MQSeries generates one event message in case if the channel goes down. The event message will be put in the event queue 'system.admin.channel.queue'. My requirement is to write a program using MQ/JMS APIs (no PCF) to read out this event message write the message to the console. Is there a way to do this just using MA88? Anybody has done this before?
Thanks |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Apr 30, 2003 6:06 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
|
Back to top |
|
 |
rajesh_avrs |
Posted: Thu May 01, 2003 2:58 am Post subject: |
|
|
Apprentice
Joined: 18 May 2001 Posts: 31
|
Unfortunately, this book does not give the files to be used when the programming language is Java.  _________________ ****************
MQSeries is cool
**************** |
|
Back to top |
|
 |
EddieA |
Posted: Mon May 05, 2003 10:34 am Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
As was stated earlier, SupportPac MS0B is what you need. It includes all the Java pieces to create or 'pull apart' a PCF message.
It can be used, quite easily, to break down an Event message to the individual fields. The layouts are described in the MQ manuals.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
|