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 » PCF response date/time format

Post new topic  Reply to topic
 PCF response date/time format « View previous topic :: View next topic » 
Author Message
guest468
PostPosted: Sat Jan 24, 2009 5:53 pm    Post subject: PCF response date/time format Reply with quote

Centurion

Joined: 30 May 2006
Posts: 146
Location: NY

Hi,

I am trying to print CMQCFC.MQCACF_LAST_GET_DATE and CMQCFC.MQCACF_LAST_GET_TIME without any luck.
As per java doc they both are integer but not sure how to format it to proper data/time format. (this is for MQCMD_INQUIRE_Q_STATUS)
Any help pls?
Back to top
View user's profile Send private message
mqjeff
PostPosted: Sun Jan 25, 2009 5:09 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

I'm surprised that the "javadoc" says that they are integers.

The manual says that they are MQCFSTs, which are strings. It even shows what format they are in.

And, of course, all MQCACFs are strings, as all MQIACFs are integers.
Back to top
View user's profile Send private message
guest468
PostPosted: Sun Jan 25, 2009 9:40 am    Post subject: Reply with quote

Centurion

Joined: 30 May 2006
Posts: 146
Location: NY

Thanks MQJeff,
Yeah weird, actually all of the CMQCFC parameters are listed as integers in javadoc.

btw, I tried string option too. But it displays nothing.

case CMQCFC.MQCACF_LAST_GET_DATE:
System.out.println ("Get Date " + (String)p.getValue() );
break;
Am I missing any casting option for date sub fields?

Thanks.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Sun Jan 25, 2009 10:05 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

What javadoc?

For what?

The manual doesn't list it as an integer.

Also, why would you cast getValue when you could just getStringValue?

Thirdly, and most importantly. Are you sure that you're getting back anything at all for MQCACF_LAST_GET_DATE? Maybe the queue manager you're inquiring against doesn't support it, or hasn't been enabled to record it.
Back to top
View user's profile Send private message
guest468
PostPosted: Sun Jan 25, 2009 11:58 am    Post subject: Reply with quote

Centurion

Joined: 30 May 2006
Posts: 146
Location: NY

This is the doc I was referring to
http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/topic/com.ibm.mq.java.doc/com/ibm/mq/constants/CMQCFC.html#MQCACF_LAST_GET_DATE

And you are right, the queue was not configured to monitor status. Once I changed it I was all set. Actually I was hoping to use this on our 5.3 qmgrs. But since monitoring is not configurable in 5.3, I am out of luck.
I was thinking PCF has some capability of somehow accessing some internal MQ data. I was in this impression because of Q statistics which is otherwise not available from any admin commands in 5.3; is actually accessible through PCF. I thought the same with Q status.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Sun Jan 25, 2009 12:55 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

That document says that the field named MQCACF_LAST_GET_TIME is an integer, which it is. It's the integer value that identifies the particular PCF Parameter as being the last get time. The value of that parameter, however, is a String value.

Also, even if PCF did use internal MQ metrics, the queue manager didn't even bother to keep track of the last put time and last get time until at least v6. If you were to search every last byte of all of the qmgr's data, you would not find the information.

Another good reason to upgrade to v6 or v7.
Back to top
View user's profile Send private message
guest468
PostPosted: Sun Jan 25, 2009 2:07 pm    Post subject: Reply with quote

Centurion

Joined: 30 May 2006
Posts: 146
Location: NY

Thanks for the info. My java sucks.
And we have V7 in most of the servers just some legacy servers are still on 5.3
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » PCF response date/time format
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.