Monday, 22 August 2011

OSB: Avoiding Stuck Thread Warnings with JCA AQ Proxies

When you create a proxy service in OSB that uses the JCA transport (for example dequeuing from an AQ queue) then you will often see warnings in the WebLogic Server (WLS) log about stuck threads. This is because the thread that is associated with the JCA transport is continuously in a poll/sleep cycle and doesn't actually terminate. To avoid these warnings:

  1. Create a new Work Manager in the WLS console
  2. Ensure that "Ignore Stuck Threads" is checked for the new Work Manager
  3. In the Dispatch Policy for the Proxy associated with the JCA adapter select the new Work Manager

This should also have the effect of not putting the server into a Warning state.