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 IndexIBM MQ Java / JMSsearch PCF command for CUSTOM PROPERTY CAPEXPRY

Post new topicReply to topic
search PCF command for CUSTOM PROPERTY CAPEXPRY View previous topic :: View next topic
Author Message
pcouas
PostPosted: Fri Mar 29, 2019 2:02 am Post subject: search PCF command for CUSTOM PROPERTY CAPEXPRY Reply with quote

Acolyte

Joined: 06 Sep 2011
Posts: 74

Hi,

I need to add CUSTOM CAPEXPRY property in my Java Program, i search PCF command for adding this functionnality .

Regards
Phil
Back to top
View user's profile Send private message
hughson
PostPosted: Fri Mar 29, 2019 2:59 am Post subject: Reply with quote

Grand Master

Joined: 09 May 2013
Posts: 1217
Location: Bay of Plenty, New Zealand

Are you writing an administrative application? Do you want to set CUSTOM('CAPEXPRY(123)') on a topic or a queue?

If you are not writing an administrative application and you just just want to ensure the messages from your application have an expiry value set, you wouldn't use an administrative command you would just set the expiry value in the MQMD.

Cheers,
Morag
_________________
Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software
Back to top
View user's profile Send private message Visit poster's website
pcouas
PostPosted: Fri Mar 29, 2019 3:48 am Post subject: Reply with quote

Acolyte

Joined: 06 Sep 2011
Posts: 74

Hi,

Yes i have made an administrative application and i want set CUSTOM('CAPEXPRY(123)') on a Queue with PCF commands in JAVA l

For example
PCFMessage request = new PCFMessage(
request.addParameter(CMQC.MQCA_Q_NAME, objectName);
request.addParameter(CMQC.MQIA_Q_TYPE, CMQC.MQQT_LOCAL);
Which parameter for CAPEXPRY

Regards
Back to top
View user's profile Send private message
markt
PostPosted: Fri Mar 29, 2019 4:58 am Post subject: Reply with quote

Chevalier

Joined: 14 May 2002
Posts: 426

as it's a CUSTOM attribute, then the PCF Java will be something like

request.addParameter(CMQC.MQCA_CUSTOM,"CAPEXPRY(300)")
Back to top
View user's profile Send private message
hughson
PostPosted: Fri Mar 29, 2019 9:41 pm Post subject: Reply with quote

Grand Master

Joined: 09 May 2013
Posts: 1217
Location: Bay of Plenty, New Zealand

pcouas wrote:
Which parameter for CAPEXPRY

Mark has told you the exact parameter you need in his answer.

For future reference, if you don't know which PCF parameter constant to use, go to the reference section of the IBM MQ Knowledge Center for PCF commands:-

Definitions of the Programmable Command Formats

and then select the command you are using, in this case:-

Change, Copy, and Create Queue

and then scroll down through the parameters to find the one you want to use, and you will also be shown the constant which represents it, and various other things about it.

Knowledge Center wrote:
Custom (MQCFST)
  • Custom attribute for new features (parameter identifier: MQCA_CUSTOM).

    This attribute contains the values of attributes, as pairs of attribute name and value, separated by at least one space. The attribute name-value pairs have the form NAME(VALUE). Single quotation marks must be escaped with another single quotation mark.
    CAPEXPRY (integer )
    • The maximum time, expressed in tenths of a second, until a message put using an object handle, opened using this object on the resolution path, remains in the system until it becomes eligible for expiry processing.

      For more information on message expiry processing, see Enforcing lower expiration times.

      The value can be one of the following:
      integer
      • The value must be in the range one through to 999 999 999.

      NOLIMIT
      • There is no limit on the expiry time of messages put using this object. This is the default value.

      Specifying a value for CAPEXPRY that is not valid, does not cause the command to fail. Instead, the default value is used.

Cheers,
Morag
_________________
Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexIBM MQ Java / JMSsearch PCF command for CUSTOM PROPERTY CAPEXPRY
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.