Examples of unBind()


Examples of javax.naming.InitialContext.unbind()

   {
      InitialContext ic = null;
      try
      {
         ic = new InitialContext();
         ic.unbind(bindName);
         NonSerializableFactory.unbind(bindName);
      }
      finally
      {
         if(ic != null)
View Full Code Here

Examples of javax.naming.InitialContext.unbind()

      if (bindName != null)
      {
         InitialContext ctx = new InitialContext();
         try
         {
            ctx.unbind(bindName);
         }
         finally
         {
            ctx.close();
         }
View Full Code Here

Examples of javax.naming.InitialContext.unbind()

   protected void stopService() throws Exception
   {
      // Bind a reference to store using NonSerializableFactory as the ObjectFactory
      InitialContext ctx = new InitialContext();
      ctx.unbind(serverJndiName);
      log.debug("Unbound SRPServerProxy at "+serverJndiName);
      NonSerializableFactory.unbind(cacheJndiName);
      ctx.unbind(cacheJndiName);
      log.debug("Unbound AuthenticationCache at "+cacheJndiName);
   }
View Full Code Here

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

 
    try {
      connImpl = realm.getConnection();
      ctx = (DirContext)connImpl.getConnection();
 
      ctx.unbind(dn);
 
    } catch (NameNotFoundException e) {
      throw new OperationFailedException("Tribe '"+name+"' not found!");

    } catch (Exception e) {
View Full Code Here

Examples of javax.naming.directory.InitialDirContext.unbind()

        DirContext ctx = new InitialDirContext(env);
        NamingEnumeration enm = ctx.listBindings("");
        while (enm.hasMore())
        {
            Binding b = (Binding) enm.next();
            ctx.unbind(b.getName());
        }
       
        insertLdapPerson(new PersonDAO().getAll());
    }
}
View Full Code Here

Examples of javax.naming.ldap.InitialLdapContext.unbind()

      System.out.println("##############################REMOVE##############################");
      for (int i = 0; i < 10; i++)
      {
         String cn = "exo" + i;
         String dn = "cn=" + cn + ", " + DEVELOPER_UNIT_DN;
         ctx.unbind(dn);
         System.out.println("remove " + dn + " successfully");
      }
   }

   private void printAttributes(String entry, Attributes attrs)
View Full Code Here

Examples of javax.naming.ldap.LdapContext.unbind()

      LdapContext ldapContext = getConnectionContext().createInitialContext();

      try
      {
         log.debug("removing entry: " + ldapu.getDn());
         ldapContext.unbind(ldapu.getDn());
      }
      catch (Exception e)
      {
         throw new IdentityException("Failed to remove user: ", e);
      }
View Full Code Here

Examples of org.apache.camel.dataformat.bindy.BindyAbstractFactory.unbind()

        // Get CRLF
        crlf = ConverterUtils.getByteReturn(factory.getCarriageReturn());

        for (Map<String, Object> model : models) {
            String result = factory.unbind(model);
            byte[] bytes = exchange.getContext().getTypeConverter().convertTo(byte[].class, exchange, result);
            outputStream.write(bytes);

            // Add a carriage return
            outputStream.write(crlf);
View Full Code Here

Examples of org.apache.camel.dataformat.bindy.BindyCsvFactory.unbind()

            }
        }

        for (Map<String, Object> model : models) {

            String result = factory.unbind(model);

            byte[] bytes = exchange.getContext().getTypeConverter().convertTo(byte[].class, exchange, result);
            outputStream.write(bytes);

            // Add a carriage return
View Full Code Here

Examples of org.apache.camel.dataformat.bindy.BindyFixedLengthFactory.unbind()

            models = (List<Map<String, Object>>) body;
        }

        for (Map<String, Object> model : models) {

            String result = factory.unbind(model);

            byte[] bytes = exchange.getContext().getTypeConverter().convertTo(byte[].class, exchange, result);
            outputStream.write(bytes);

            // Add a carriage return
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.