Network Deployment (Distributed operating systems), v8.0 > Develop and deploying 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.
Procedure
- Optional: Open the admin 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 your 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.
Configure EJB asynchronous methods using scripting
Related
EJB asynchronous methods settings