src/main/java/org/jboss/util/naming/Util.java
/** Rebind val to name in ctx, and make sure that all intermediate contexts exist
    @param ctx the parent JNDI Context under which value will be bound
    @param name the name relative to ctx where value will be bound
    @param value the value to bind.
    @throws NamingException for any error
    */
Rebind val to name in ctx, and make sure that all intermediate contexts exist
Rebind val to name in ctx and make sure that all intermediate contexts exist
public static void rebind(Context ctx, Name name, Object value) throws NamingException
   {
      int size = name.size();
      String atom = name.get(size - 1);
      Context parentCtx = createSubcontext(ctx, name.getPrefix(size - 1));
      parentCtx.rebind(atom, value);
   }
public static void rebind ( Context ctx , Name name , Object value ) throws NamingException { int size = name . size ( ) ; String atom = name . get ( size - 1 ) ; Context parentCtx = createSubcontext ( ctx , name . getPrefix ( size - 1 ) ) ; parentCtx . rebind ( atom , value ) ; }
Rebind val to name in ctx, and make sure that all intermediate contexts exist
Rebind val to name in ctx and make sure that all intermediate contexts exist