Show Table of Contents
20.2.4. Edit a Bean Pool
Bean pools can be edited using the Management Console.
Procedure 20.5. Edit a bean pool using the Management Console
- Login to the Management Console. Section 3.4.2, “Log in to the Management Console”
- Click on in the top right, expand the item in the Profile panel on the left and select . Then select the tab from the main panel.
- Click on the bean pool you wish to edit from the list.
- Click the button. The fields in the Details area are now editable.
- Edit the details you want to change. Only Max Pool Size, Timeout value, and Timeout unit can be changed.
- Click the button if you are satisfied with the changes, or click the Cancel link if you want to discard the changes.If you click the button, the Details area will change back to it's non-editable form and the bean pool will be updated with the new details.If you click the Cancel link, the Details area will change back to it's non-editable form and no changes will be made.
Procedure 20.6. Edit a bean pool using the CLI
- Launch the CLI tool and connect to your server. Refer to Section 3.5.4, “Connect to a Managed Server Instance Using the Management CLI”.
- Use the
write-attributeoperation with the following syntax for each attribute of the bean pool to be changed./subsystem=ejb3/strict-max-bean-instance-pool=BEANPOOLNAME:write-attribute(name="ATTRIBUTE", value="VALUE")
- Replace BEANPOOLNAME with the required name for the bean pool.
- Replace ATTRIBUTE with the name of the attribute to be edited. The attributes that can be edited in this way are
max-pool-size,timeout, andtimeout-unit. - Replace VALUE with the required value of the attribute.
- Use the
read-resourceoperation to confirm the changes to the bean pool./subsystem=ejb3/strict-max-bean-instance-pool=BEANPOOLNAME:read-resource
Example 20.4. Set the Timeout Value of a Bean Pool using the CLI
[standalone@localhost:9999 /] /subsystem=ejb3/strict-max-bean-instance-pool=HSBeanPool:write-attribute(name="timeout", value="1500")
{"outcome" => "success"}
[standalone@localhost:9999 /]
Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.