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 » IBM MQ Java / JMS » Activity report

Post new topic  Reply to topic
 Activity report « View previous topic :: View next topic » 
Author Message
amitgoelamit
PostPosted: Sun Jul 27, 2008 4:54 am    Post subject: Reply with quote

Novice

Joined: 19 Jul 2008
Posts: 20

Hi java_problem, fjb_saper, all

I am trying to read the activity report. Got the activity report structure at
http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.csqsav.doc/csqsav0464.htm
and further details at
http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.csqsav.doc/csqsav0464.htm


documentation says
Activity reports are standard WebSphere MQ report messages containing a message descriptor and message data. Activity reports are PCF messages generated by applications that have performed an activity on behalf of a message as it has been routed through a queue manager network.

In the same line Activity report is considered as standard report message and also PCF message. Confusing ...

I was able to read activity report and get header information using
Code:
               MQQueue queue = qm.accessQueue (qName, MQC.MQOO_BROWSE | MQC.MQOO_FAIL_IF_QUIESCING);
              
               MQMessage message = new MQMessage ();
               MQGetMessageOptions gmo = new MQGetMessageOptions ();
              
              
               gmo.options = MQC.MQGMO_BROWSE_NEXT | MQC.MQGMO_NO_WAIT | MQC.MQGMO_CONVERT;


                   message.messageId = null;
                   message.correlationId = null;

                   queue.get (message, gmo);


and then got header information by message.
So that means activity report is a normal message since I the code didnt threw any exception.
However for statement
Code:
 PCFMessage pcf = new PCFMessage (message);


I got QJE001: Completion Code 2, Reason 3001: MQRCCF_CFH_TYPE_ERROR

that means atleast PCFMessage is not the way to parse it..

Now considering the activity report is a normal MQMessage then getting to its data section is trickier...
documentation says activity data has 2 parts-
    1. Embedded PCF Header MQEPH and
    2. Activity Report Message Data itself - this inturn has MQMD and Embedded MQMD.


I am not able to get any clear documentation for parsing these... or any guide on parsing the information....

it will be helpful if anyone can provide sample code or guide or link to some clue towards this... even anything which can help me understanding parsing of data....

appreciate quick help!!

thanks
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sun Jul 27, 2008 10:38 am    Post subject: Reply with quote

Grand High Poobah

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

Do not double post http://www.mqseries.net/phpBB2/viewtopic.php?t=44586 or hijack another post please.

Split from a hijacked post....
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Activity report
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.