Skip navigation.

WebLogic Server Command Reference

  Previous Next vertical dots separating previous/next from contents/index/pdf Contents Index View as PDF   Get Adobe Reader

 


EXISTS_POOL

Tests whether a connection pool with a specified name exists in the WebLogic Server domain. You can use this method to determine whether a dynamic connection pool has already been created or to ensure that you select a unique name for a dynamic connection pool you want to create.

Syntax

java [ SSL Arguments ] weblogic.Admin 
[-url URL]
[ User Credentials Arguments ]
EXISTS_POOL -poolName connection_pool_name

Argument

Definition

-url [protocol://]listen-address:listen-port

Specify the listen address and listen port of the Administration Server.

If you specify a secure listen port, you must also specify a secure protocol.

If you do not specify a value, the command assumes t3://localhost:7001.

For more information, refer to the -url entry in Table 1-3 on page 11 and Protocol Support.

-poolName

Name of connection pool.


 

Example

The following command determines wether or not a pool with a specific name exists:

java weblogic.Admin -url AdminHost:7001 -username weblogic
-password weblogic EXISTS_POOL -poolName demoPool

 


Commands for Managing WebLogic Server MBeans

The following sections describe weblogic.Admin commands for managing WebLogic Server MBeans.

Specifying MBean Types

To specify which MBean or MBeans you want to access, view, or modify, all of the MBean management commands require either the -mbean argument or the -type argument.

Use the -mbean argument to operate on a single instance of an MBean.

Use the -type argument to operate on all MBeans that are an instance of a type that you specify. An MBean's type refers to the interface class of which the MBean is an instance. All WebLogic Server MBeans are an instance of one of the interface classes defined in the weblogic.management.configuration or weblogic.management.runtime packages. For configuration MBeans, type also refers to whether an instance is an Administration MBean or a Local Configuration MBean. For a complete list of all WebLogic Server MBean interface classes, refer to the WebLogic Server Javadoc for the weblogic.management.configuration or weblogic.management.runtime packages.

To determine the value that you provide for the -type argument, do the following:

  1. Find the MBean's interface class and remove the MBean suffix from the class name. For an MBean that is an instance of the weblogic.management.runtime.JDBCConnectionPoolRuntimeMBean, use JDBCConnectionPoolRuntime.
  2. For a Local Configuration MBean, append Config to the name. For example, for a Local Configuration MBean that is an instance of the weblogic.management.configuration.JDBCConnectionPoolMBean interface class, use JDBCConnectionPoolConfig. For the corresponding Administration MBean instance, use JDBCConnectionPool.

MBean Management Commands

Table 1-7 is an overview of the MBean management commands.

Table 1-7 MBean Management Command Overview 

Command

Description

CREATE

Creates an Administration MBean instance. This command cannot be used for Runtime MBeans and we recommend that you do not use it to create Local Configuration MBeans.

See CREATE.

DELETE

Deletes an MBean instance.

See DELETE.

GET

Displays properties of MBeans.

See GET.

INVOKE

Invokes management operations that an MBean exposes for its underlying resource.

See INVOKE.

QUERY

Searches for MBeans whose WebLogicObjectName matches a pattern that you specify.

See QUERY.

SET

Sets the specified property values for the named MBean instance. This command cannot be used for Runtime MBeans.

See SET.


 

 

Skip navigation bar  Back to Top Previous Next