16.3.3. Remove a Thread Pool

download PDF
Unused EJB thread pools can be removed using the Management Console.

Prerequisites

Procedure 16.11. Remove an EJB thread pool using the Management Console

  1. Login to the Management Console. 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 Thread Pools tab from the main panel.
    EJB3 Thread Pools Panel

    Figure 16.7. EJB3 Thread Pools Panel

  3. Select the thread 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 thread 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.12. Remove a thread 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.
    /subsystem=ejb3/thread-pool=THREADPOOLNAME:remove
    • Replace THREADPOOLNAME with the name of the thread pool.

Example 16.9. Removing a Thread Pool using the CLI

[standalone@localhost:9999 /] /subsystem=ejb3/thread-pool=ACCTS_THREADS:remove
{"outcome" => "success"}
[standalone@localhost:9999 /]
Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.