Avatar of WAS
WAS
Flag 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
PythonScripting Languages

Avatar of undefined
Last Comment
HonorGod

8/22/2022 - Mon
HonorGod

Thanks for providing the WAS version.  That helps.

How do you want to specify the scope?

See Configuring Work Managers step 3
HonorGod

Do you want to provide the setting / options as script command line options, or to use an input file?
WAS

ASKER
at cluster level and variable values should be hardcoded
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
HonorGod

Something like this perhaps?
WorkManager.py
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
HonorGod

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
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
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
HonorGod

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
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
WAS

ASKER
HonorGod,
Any updates :) please
Your help has saved me hundreds of hours of internet surfing.
fblack61
WAS

ASKER
Thank you for helping
HonorGod

I didn't realize that you had responded.

Did you get the issue(s) resolved?