16.2.3. Remove a Bean Pool

Unused bean pools can be removed using the Management Console.


Procedure 16.3. Remove a bean pool using the Management Console

  1. Login to the Management Console. Refer to Section 3.2.2, “Log in to the Management Console”.
  2. Click on Profile in the top right, expand the Container item in the Profile panel on the left and select EJB 3. Then select the Bean Pools tab from the main panel.
    EJB3 Bean Pools Panel

    Figure 16.3. EJB3 Bean Pools Panel

  3. Select the bean pool to remove in the list.
  4. Click the Remove button. The Remove Item dialog appears.
  5. Click the OK button to confirm deletion or click the Cancel link to abort the operation.
    If you click the Ok button, the dialog will close and the bean pool will be deleted and removed from the list.
    If you click Cancel, the dialog will close and no changes will be made.

Procedure 16.4. Remove a bean pool using the CLI

  1. Launch the CLI tool and connect to your server. Refer to Section 3.3.4, “Connect to a Managed Server Instance Using the Management CLI”.
  2. Use the remove operation with the following syntax.
    • Replace BEANPOOLNAME with the required name for the bean pool.

Example 16.3. Removing a Bean Pool using the CLI

[standalone@localhost:9999 /] /subsystem=ejb3/strict-max-bean-instance-pool=ACCTS_BEAN_POOL:remove  
{"outcome" => "success"}
[standalone@localhost:9999 /]