Link to home
Start Free TrialLog in
Avatar of WAS
WASFlag for United States of America

asked on

create workmanager in WAS7 using jython scripts

Please provide jython script for creating work manager in WAS7.0.0.21

Resources --> Asynchronous beans -->  Work Manager --> New

Name = totowm
JNDI name = wm/totowm
num of alarm threads = 10
min num of threads = 1
max num of threads = 10
Thread priority  = 5
Growable = unchecked

Please let me know if you have questions
Avatar of HonorGod
HonorGod
Flag of United States of America image

Thanks for providing the WAS version.  That helps.

How do you want to specify the scope?

See Configuring Work Managers step 3
Do you want to provide the setting / options as script command line options, or to use an input file?
Avatar of WAS

ASKER

at cluster level and variable values should be hardcoded
Something like this perhaps?
WorkManager.py
Avatar of WAS

ASKER

Hi HonorGod,

sorry for late reply, i am getting below error, please help


WASX7209I: Connected to process "dmgr" on node pipadmgr using SOAP connector;  The type of process is: DeploymentManager
Error creating WorkManagerInfo configuration object
No configuration changes exist to be saved
That "warning" message means that it was unable to create the specified resource.

Let me see what I can to to improve the messages about what it is unable to find...

Try this one.
WorkManager.py
Avatar of WAS

ASKER

Now i got below error messages


Cluser kaka1 found.
WorkManagerProvider found: WorkManagerProvider
attributes: [['name', 'pipaWorkManager'], ['jndiName', 'pipa/losWorkManager'], ['numAlarmThreads', '2'], ['minThreads', '9'], ['maxThreads', '90'], ['threadPriority', '5'], ['isGrowable', 'false']]
Error creating WorkManagerInfo configuration object
No configuration changes exist to be saved
ASKER CERTIFIED SOLUTION
Avatar of HonorGod
HonorGod
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of WAS

ASKER

HonorGod,
Now i get below error message

Realm/Cell Name: <default>
WASX7209I: Connected to process "dmgr" on node 321admgr using SOAP connector;  The type of process is: DeploymentManager
Cluser toto found.
WorkManagerProvider found: WorkManagerProvider
attributes: [['name', 'totoWorkManager'], ['jndiName', 'wm/totoWorkManager'], ['numAlarmThreads', '2'], ['minThreads', '9'], ['maxThreads', '90'], ['threadPriority', '5'], ['isGrowable', 'false']]
Error creating WorkManagerInfo configuration object
Exception Type: com.ibm.ws.scripting.ScriptingException
         value: com.ibm.ws.scripting.ScriptingException: WASX7129E: Cannot create objects of type "WorkManagerInfo" in parents of type "ServerCluster"
No configuration changes exist to be saved
Avatar of WAS

ASKER

HonorGod,
Any updates :) please
Avatar of WAS

ASKER

Thank you for helping
I didn't realize that you had responded.

Did you get the issue(s) resolved?