Skip navigation.
Downloads | Product Documentation | Support

WebLogic Server Command Reference

## LIST

Lists the bindings of a node in the JNDI naming tree.

### Syntax

>     java [ SSL Arguments ] weblogic.Admin
>          [ Connection Arguments ]
>          [ User Credentials Arguments ]
>        LIST [JNDIcontextName]

Argument | Definition
--- | ---
`JNDIcontextName` | The JNDI context for lookup, for example, `weblogic`, `weblogic.ejb`, `javax`. By default, the command lists the bindings immediately below the InitialContext of the specified server instance.

### Example

The following command returns the initial context for the MedRecServer example server that runs on a machine named AdminHost:

>     java weblogic.Admin -url AdminHost:7001 -username weblogic
>        -password weblogic LIST

For more information about the environment in which this example runs, refer to Example Environment.

If the command succeeds, it returns information similar to the following abbreviated output:

>     Contents of InitialContext
>         jms: weblogic.jndi.internal.ServerNamingNode
>       javax: weblogic.jndi.internal.ServerNamingNode
>       mail: weblogic.jndi.internal.ServerNamingNode
>     ...

To view the JNDI tree below the mail context, enter the following command:

>      java weblogic.Admin -url AdminHost:7001 -username weblogic
>        -password weblogic LIST mail

If the command succeeds, it returns the following:

>     Contents of mail
>       MedRecMailSession: javax.mail.Session