Examples of destroySubcontext()


Examples of javax.naming.Context.destroySubcontext()

       
        //unbind any NamingEntries that were configured in this webapp's name space
        try
        {
            Context scopeContext = NamingEntryUtil.getContextForScope(getWebAppContext());
            scopeContext.destroySubcontext(NamingEntry.__contextName);
        }
        catch (NameNotFoundException e)
        {
            Log.ignore(e);
            Log.debug("No naming entries configured in environment for webapp "+getWebAppContext());
View Full Code Here

Examples of javax.naming.Context.destroySubcontext()

   public void destroy()
   {
      try
      {
         Context context = createContext();
         context.destroySubcontext(JndiUtils.BEAN_MANAGER_GLOBAL_SUBCONTEXT);
      }
      catch (Exception ignore)
      {
      }
   }
View Full Code Here

Examples of javax.naming.Context.destroySubcontext()

    try {
      Any param = parameters[0];
      if (param instanceof AnyName) {
        ctx.destroySubcontext((Name)param.toObject());
      } else {
        ctx.destroySubcontext(param.toString());
      }
    } catch (NamingException e) {
      throw context.exception(e);
    }
    return this;
View Full Code Here

Examples of javax.naming.Context.destroySubcontext()

    }
    Context ctx = getContext();
    try {
      Any param = parameters[0];
      if (param instanceof AnyName) {
        ctx.destroySubcontext((Name)param.toObject());
      } else {
        ctx.destroySubcontext(param.toString());
      }
    } catch (NamingException e) {
      throw context.exception(e);
View Full Code Here

Examples of javax.naming.InitialContext.destroySubcontext()

    public void tearDown ()
    throws Exception
    {
        InitialContext ic = new InitialContext();
        ic.destroySubcontext("a");
    }
   
   
    public void testLocal ()
    throws Exception
View Full Code Here

Examples of javax.naming.directory.DirContext.destroySubcontext()

        catch ( SchemaViolationException e )
        {
            // Expected behaviour
        }

        ctx.destroySubcontext( rdn );
    }


    /**
     * Create a person entry and try to remove an attribute from the Rdn
View Full Code Here

Examples of javax.naming.directory.DirContext.destroySubcontext()

        catch ( SchemaViolationException e )
        {
            // Expected behaviour
        }

        ctx.destroySubcontext( rdn );
    }


    /**
     * Create a person entry and try to remove objectClass attribute
View Full Code Here

Examples of javax.naming.directory.DirContext.destroySubcontext()

        catch ( Exception e )
        {
            e.printStackTrace();
        }

        ctx.destroySubcontext( rdn );
    }


    /**
     * Create a person entry and try to remove objectClass attribute. A variant
View Full Code Here

Examples of javax.naming.directory.DirContext.destroySubcontext()

        catch ( SchemaViolationException e )
        {
            // expected
        }

        ctx.destroySubcontext( rdn );
    }


    /**
     * Test for DIRSERVER-1308:
View Full Code Here

Examples of javax.naming.directory.DirContext.destroySubcontext()

            assertEquals( 1, desc.size() );
            assertTrue( desc.contains( descriptions[0] ) );
        }

        // Remove the person entry
        ctx.destroySubcontext( rdn );
    }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.