cancel
Showing results for 
Search instead for 
Did you mean: 

Redwood script to change the execution size of a Process queue

Former Member
0 Kudos

Hello, Still looking for assistance on changing the execution size of a process queue via  Redwood Script

Tried the following scripts (for a Gobal Process Queue):

{

Queue aq = jcsSession.getQueueByName("ECC_Queue_TEMP");

aq.setExecutionSize(new Long(11));

}

and

{

Partition pt = jcsSession.getPartitionByName("GLOBAL");

if (pt == null)

{

throw new RuntimeException("'Could not find the requested Partition'");

}

Queue q = jcsSession.getQueueByName("HBW_Queue");

q.setExecutionSize(new Long(11));

}

Does not fail or prodiuce any results

Accepted Solutions (0)

Answers (1)

Answers (1)

gmblom
Active Contributor
0 Kudos

Hello,

Never forget to commit your changes using jcsSession.persist();

Regards Gerben

Former Member
0 Kudos

Thanks

Applied  and it works:

{

Queue aq = jcsSession.getQueueByName("ECC_Queue_TEMP");

aq.setExecutionSize(new Long(54));

jcsSession.persist();

}