Class JNDIUtil


  • public class JNDIUtil
    extends Object
    • Constructor Detail

      • JNDIUtil

        public JNDIUtil()
    • Method Detail

      • rebind

        public static void rebind​(Context c,
                                  String jndiName,
                                  Object o)
                           throws NamingException
        Context.rebind() requires that all intermediate contexts and the target context (that named by all but terminal atomic component of the name) must already exist, otherwise NameNotFoundException is thrown. This method behaves similar to Context.rebind(), but creates intermediate contexts, if necessary.
        Throws:
        NamingException