This is continuous to my previous post , in this post we will see how to create work managers and use it in our oracle service bus services.
To view my previous post clickhere
Using work managers we can restrict the number of requests to your service.
By using Work managers you can optimize the scheduled work of your service.
WebLogic Server prioritizes work and allocates threads based on an execution model that takes into account administrator-defined parameters and actual run-time performance and throughput.
Here we will see how to define work managers.
Login to your weblogic server console.
Create a session and navigate to domain structure and click on work managers .
In the Global Work Managers page , click on New.
In the Work manager component page , select the ‘work manager‘ radio button and click on Next.
Enter the Name and click on Next.
Select the Targets and Click on Finish .
STEP 2 –>
Now click on New to create maximum threads constraint .
Enter the Name and Count and click on Next.
Select the Targets to which you want to add these constraint and click on Finish.
STEP 3 –>
Now open the work manager that you created in STEP1 , and select the ‘Maximum threads constraint‘ that you created in STEP2 and click on SAVE.
Click on Activate in the change center to Activate the changes. And restart the server.
Login to oracle service bus console and open your proxy or business service where you want to use this work manager.
Click on Edit and in “Http Transport Configuration” page , select the dispatch policy as “TestWkm” which we created in STEP1.
Save the changes and click on Activate to update the changes.