Using Work Managers in Oracle Service Bus

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.

STEP 1–>

Login to your weblogic server console.

Create a session and navigate to domain structure and click on work managers .

wkm.JPG

In the Global Work Managers page , click on New.

wkm1.JPG

In the Work manager component page , select the ‘work manager‘ radio button and click on Next.

wkm2.JPG

Enter the Name and click on Next.

wkm3

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.

wkm6.JPG

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.

wkm7

Click on Activate in the change center to Activate the changes. And restart the server.

STEP 4–>

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.

wkm8

Save the changes and click on Activate to update the changes.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s