Configure 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.
- Optional: Open the console.
- Select Servers.
- Select Server Types.
- Select WebSphere application servers.
- Select the server to configure.
- From Server Infrastructure, select Java and Process Management Process definition.
- From Additional Properties, select Java Virtual Machine .
- In the Additional Properties area, select Custom Properties .
- On the Application servers page, click New to specify an arbitrary name and value pair for the server.
- In the Name entry field, type: com.ibm.websphere.ejbcontainer.maxUnclaimedAsyncResults
- 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.
- Click OK.
- Save the configuration.
- Restart the server.
Results
The maximum number of unclaimed asynchronous EJB method results for all EJBs is set.
Related tasks
Configure EJB asynchronous methods
EJB asynchronous methods settings