Configure name space bindings

The application server name space consists of references to objects that the application server uses. A name space binding is a reference to a particular object. Because the name of an object in the name space does not change, you can change the names of the resources that your applications use, and the applications can still connect to those resources. See Java Naming and Directory Interface (JNDI) for more information on naming.

You can use the administrative console and wsadmin to configure name space bindings.

Use the administrative console to configure name space bindings

To configure name space bindings with the administrative console, follow these steps:

  1. Start the administrative console.
  2. Expand Environment --> Naming and click Name Space Bindings.
  3. Verify that the scope is set to the server level.
  4. Add, modify, or remove a name space binding.
  5. Save the application server configuration

Use wsadmin to configure name space bindings

To configure name space bindings with wsadmin, follow these steps:

  1. On the CL command line, run the STRQSH (Start Qshell) command.

  2. Run the cd command to change to the directory that contains the wsadmin tool:

    cd /QIBM/ProdData/WebASE/ASE5/bin
  3. Start wsadmin.

  4. At the wsadmin prompt, run this command to identify the application server and assign it to the server variable:

    set server [$AdminConfig getid /Cell:myCell/Node:myNode/Server:myAppSvr/]

    where myCell is the name of the cell that contains your application server, myNode is the name of the node that contains your application server, and myAppSvr is the name of your application server.

  5. Add a new name space binding on the server.

  6. Run this command to save your changes:

    $AdminConfig save