WAS v8.5 > Develop applications > Develop EJB applications > Develop session beans > Configure EJB 3.1 session bean methods to be asynchronous

Configuring remote asynchronous EJB method results

Use this task to set the maximum number of unclaimed results for a remote asynchronous EJB method call. 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.

  1. Optional: Open the dmgr console.

  2. Select Servers.

  3. Select Server Types.

  4. Select WebSphere application servers.

  5. Select the server 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 the 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. Default is 1000.

  12. Click OK.

  13. Save the configuration.

  14. Restart the server.


Results

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


Related


Configure EJB asynchronous methods using scripting


Reference:

EJB asynchronous methods settings


+

Search Tips   |   Advanced Search