Sun GlassFish Enterprise Server v3 Administration Guide

ProcedureTo List External JNDI Entries

Use the list-jndi-entries subcommand in remote mode to browse and list the entries in the JNDI tree. You can either list all entries, or you can specify the JNDI context or subcontext to list specific entries.

  1. Ensure that the server is running.

    Remote subcommands require a running server.

  2. List the JNDI entries for a configuration by using the list-jndi-entries(1) subcommand.

Example 20–7 Listing JNDI Entries

This example lists all the JNDI entries for the naming service.

asadmin> list-jndi-entries
Command list-jndi-resources executed successfully

See Also

You can also view the full syntax and options of the subcommand by typing asadmin help list-jndi-entries at the command line.