Copyright (c) Qusay H. Mahmoud
8
Browsing the Naming Service….
lfor (int i = 0; i < bindings.length; i++) {
l  Binding binding = bindings[i];
l  NameComponent[] name = binding.binding_name;
l  BindingType type = binding.binding_type;
l  if (type == BindingType.nobject) {
l      System.out.println (name[0].id + "-" + name[0].kind);
l  } else { // BindingType.ncontext
l   System.out.println (name[0].id + "-" + name[0].kind + "/");
l  }
l }
l