CORBA 2.3.3 Programmer's Guide for C++ (NonStop CORBA 2.3.3+)

resolve object-name
This option returns the stringified IOR of the object which is bound to the name specified by object-name.
unbind object-name
This option unbinds the name specified by object-name from the object it is currently bound to.
Examples of ns_browse Commands
The following commands demonstrate how the ns_browse tool works:
Run ns_browse without any parameters, as follows:
ns_browse
This command causes the tool to display usage information.
1.
Run ns_browse to list the contents of the root naming context:
ns_browse list
2.
Run ns_browse to bind a new naming context with name TestCtx test (TestCtx is the name id and
test is the name kind) in the root naming context. This command returns a stringified IOR of the newly
created context.
ns_browse bind_new_context TestCtx test
3.
Run ns_browse to bind a new naming context with name TestCtx1 "" (no kind specified) in the naming
context with name TestCtx test. This action can be done in two ways: One way is to bind a new naming
context, Test Ctx junk TestCtx1 "", to the root naming context. Note that the assumption here is that
the TestCtx test context is bound into the root naming context. For example:
ns_browse bind_new_context TestCtx test TestCtx1 ""
Another way is to bind a new context TextCtx1 "" into the TestCtx test context by using the -ior
option to specify the TestCtx test naming context as the base naming context for this operation. To do this
action, you need the stringified IOR of the TestCtx test context, which is returned by ns_browse when
that context is created.
ns_browse -ior IOR:004532... bind_new_context TestCtx1 ""
4.
Run ns_browse to list the contents of the naming context with name TestCtx test:
ns_browse list TestCtx test
5.
Run ns_browse to remove a naming context with name TestCtx1 "" from the naming context with name
TestCtx test. Again, assuming that the TestCtx test context is bound to the root naming context, you can
issue the following command:
ns_browse remove_context TestCtx test TestCtx1 ""
6.
Run ns_browse to remove a naming context with name TestCtx1 test from the root naming context.
ns_browse remove_context TestCtx test
7.
Prev Up Next