Author |
Message
|
amigupta1978 |
Posted: Fri Jan 25, 2002 3:41 pm Post subject: |
|
|
Centurion
Joined: 22 Jan 2002 Posts: 132 Location: India
|
Hi,
Can anybody give the sample code for using the PCF commands using the MQSeries JAVA APIs. I am using the MQSeries ver 5.2 on AIX with JDK 1.2.2.
Actually I have to make a JAVA program to make the queue GET inhibited on certain conditions. I found the help on PCF commands but they all are in the C language. It would be a great help if somebody can send a sample PCF program using JAVA.
Thanks in Advance,
Amit |
|
Back to top |
|
 |
kolban |
Posted: Fri Jan 25, 2002 5:19 pm Post subject: |
|
|
 Grand Master
Joined: 22 May 2001 Posts: 1072 Location: Fort Worth, TX, USA
|
You don't have to use PCF to acheive this task. See the latest "Using Java" manual p137. You will read about a method on the MQQueue object called setInhibitGet(). This method allows you to set the "Get Inhibit" flag directly. It takes one of the following two values as a parameter:
o MQC.MQQA_GET_INHIBITED
o MQC.MQQA_GET_ALLOWED |
|
Back to top |
|
 |
amigupta1978 |
Posted: Fri Jan 25, 2002 5:27 pm Post subject: |
|
|
Centurion
Joined: 22 Jan 2002 Posts: 132 Location: India
|
Thnx ....
This is woking fine.I somehow skipped this function.
But just for my learning sake can anyone provide me a sample JAVA program using the PCF commands to do some task. I am unable to start with writing a JAVA program for PCF as getting confused with so many structures there.
|
|
Back to top |
|
 |
kolban |
Posted: Fri Jan 25, 2002 6:08 pm Post subject: |
|
|
 Grand Master
Joined: 22 May 2001 Posts: 1072 Location: Fort Worth, TX, USA
|
|
Back to top |
|
 |
amigupta1978 |
Posted: Fri Jan 25, 2002 6:44 pm Post subject: |
|
|
Centurion
Joined: 22 Jan 2002 Posts: 132 Location: India
|
hi,
Thnx again for ur help. Yes Ihave found some sample programs there..
Regards
Amit |
|
Back to top |
|
 |
zpat |
Posted: Mon Jan 28, 2002 3:34 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
|
Back to top |
|
 |
shcherb |
Posted: Thu Oct 24, 2002 12:24 am Post subject: PCF messages in JMS |
|
|
Apprentice
Joined: 12 Sep 2001 Posts: 34
|
Hi,
Can I use PCF SupportPac with WebSphereMQ JMS classes ? If not, how can I suspend/resume (or inhibit put from) JMS queue ?
Thanks,
Vladimir |
|
Back to top |
|
 |
|