|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
|
|
search PCF command for CUSTOM PROPERTY CAPEXPRY |
« View previous topic :: View next topic » |
Author |
Message
|
pcouas |
Posted: Fri Mar 29, 2019 2:02 am Post subject: search PCF command for CUSTOM PROPERTY CAPEXPRY |
|
|
Voyager
Joined: 06 Sep 2011 Posts: 79
|
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 |
|
|
hughson |
Posted: Fri Mar 29, 2019 2:59 am Post subject: |
|
|
Padawan
Joined: 09 May 2013 Posts: 1948 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 |
|
|
pcouas |
Posted: Fri Mar 29, 2019 3:48 am Post subject: |
|
|
Voyager
Joined: 06 Sep 2011 Posts: 79
|
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 |
|
|
markt |
Posted: Fri Mar 29, 2019 4:58 am Post subject: |
|
|
Knight
Joined: 14 May 2002 Posts: 508
|
as it's a CUSTOM attribute, then the PCF Java will be something like
request.addParameter(CMQC.MQCA_CUSTOM,"CAPEXPRY(300)") |
|
Back to top |
|
|
hughson |
Posted: Fri Mar 29, 2019 9:41 pm Post subject: |
|
|
Padawan
Joined: 09 May 2013 Posts: 1948 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 |
|
|
|
|
|
|
Page 1 of 1 |
|
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
|
|
|
|