on 11-21-2014 4:54 PM
Trying to run a Rewwood script to close or change the exection status of a Process quqe. I follow the instrucion in the Administration Guide, but script is not work. No failure, just not working
Here's my script:
{
// get the queue
Queue aQ = jcsSession.getQueueByName("ECC_Queue_TEMP");
// check to see if the queue is open
if (aQ.isOpen())
{
//hold the queue
aQ.hold();
jcsSession.persist();
}
}
Please review & assist Thanks
Hi Larry,
Try this:
{
// get the partition
Partition part = jcsSession.getPartitionByName("GLOBAL");
// get the queue
Queue aQ = jcsSession.getQueueByName(part, "ECC_Queue_TEMP");
//Check if we found a queue:
if (aQ != null)
{
jcsOut.println("Found queue");
jcsOut.println("Queue is "+ aQ.getStatus().name());
// check to see if the queue is open
if (aQ.isOpen())
{
//hold the queue
aQ.hold();
jcsSession.persist();
}
}
}
Regards,
HP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is ECC_Queue_TEMP in Global partition? If, not then you have to get the queue in the following way:
getQueueByName(Partition partition, String name)
Thanks
Nanda
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.