« JMS session pooling in WAS 5.x | Main | Creating a WorkManager using java/jmx »

December 02, 2003

Creating a WorkManager using wsadmin/jmx

Had a customer question today on how to do this so here it is:

puts "Locating WorkManagerProvider"
set wmp [lindex [$AdminConfig list WorkManagerProvider] 0]

puts "Create a new WorkManager"
set attrs {{category "ABFVT"} {description "AsynchBeans FVT WorkManager"} {isGrowable false} {jndiName wm/ABFVT1} {maxThreads 30} {minThreads 20} {name ABFVT_WM1} {numAlarmThreads 10} {serviceNames security;UserWorkArea;com.ibm.ws.i18n;AppProfileService} {threadPriority 5}}
$AdminConfig create WorkManagerInfo $wmp $attrs

puts "Saving Config"
$AdminConfig save


Basically, find the WorkManagerProvider first, then make a list for the attributes and then create the WorkManager and then make sure to do a '$AdminConfig save' to make it permanent.

December 2, 2003 in WebSphere JMX | Permalink

Comments

really nice place here..

Posted by: jenny | May 26, 2004 2:37:11 AM

i enjoy being here..

Posted by: jonny | May 26, 2004 2:39:19 AM

Thanks for providing lots of good hints and tips. I find wsadmin jacl scripting one of the hardest things to find solid info about. Do you know of a good and comprehensive reference?

Also, here's a specific question: when modify is used to add a property, e.g.to a nodes VariableMap, there is no existence check and you can end up with multiple entries of the same name. Likewise, I don't see any way to delete an entry in a properties list other than running a loop over all the values and copying what you want to keep, then deleting the whole attribute list and re-adding it. Do you know a better way?

Thanks.

Posted by: Bill Bennett | Aug 8, 2005 11:10:53 AM

Could you please tell me how a created workmanager can be deleted from jacl script and this should not delete the defaultworkmanager.
Thanks,
Praveen

Posted by: Praveen | Oct 11, 2006 10:20:23 AM

Post a comment