Configuring remote asynchronous EJB method results

Use this task to set the maximum number of unclaimed results for a remote asynchronous Enterprise JavaBeans (EJB) method call.

About this task

When a remote asynchronous EJB method is called, the server must save the results of the remote method invocation until the client claims the results using the Future.get method. If the client never claims the result, unclaimed results can accumulate in the server and use memory. To avoid using too much memory, the server limits the number of unclaimed results to 1000 by default. If the number of unclaimed results approaches or exceeds the limit, the server issues the CNTR0328W warning.

Procedure

  1. Optional: Open the administrative console.
  2. Select Servers.
  3. Select Server Types.
  4. Select WebSphere application servers.
  5. Select the server that you want to configure.
  6. From Server Infrastructure, select Java and Process Management Process definition.
  7. From Additional Properties, select Java Virtual Machine .
  8. In the Additional Properties area, select Custom Properties .
  9. On the Application servers page, click New to specify an arbitrary name and value pair for your server.
  10. In the Name entry field, type: com.ibm.websphere.ejbcontainer.maxUnclaimedAsyncResults
  11. In the Value entry field, enter the wanted maximum number of unclaimed results.
    The special value 0 is interpreted as unlimited. The default value is 1000.
  12. Click OK.
  13. Save the configuration.
  14. Restart the server.

Results

The maximum number of unclaimed asynchronous EJB method results for all EJBs is set.