Package javax.naming

Examples of javax.naming.Context.rebind()


      if (log.isDebugEnabled()) log.debug("Setting " + UDDI_INQUIRY_SERVICE + ", " + inquiryService.getClass());
      juddiContext.rebind(UDDI_INQUIRY_SERVICE, inquiryService);
     
      subscriptionService = new UDDISubscriptionService();
      if (log.isDebugEnabled()) log.debug("Setting " + UDDI_SUBSCRIPTION_SERVICE + ", " + subscriptionService.getClass());
      juddiContext.rebind(UDDI_SUBSCRIPTION_SERVICE, subscriptionService);
     
      subscriptionListenerService = new UDDISubscriptionListenerService();
      if (log.isDebugEnabled()) log.debug("Setting " + UDDI_SUBSCRIPTION_LISTENER_SERVICE + ", " + subscriptionListenerService.getClass());
      juddiContext.rebind(UDDI_SUBSCRIPTION_LISTENER_SERVICE, subscriptionListenerService);
     
View Full Code Here


      if (log.isDebugEnabled()) log.debug("Setting " + UDDI_SUBSCRIPTION_SERVICE + ", " + subscriptionService.getClass());
      juddiContext.rebind(UDDI_SUBSCRIPTION_SERVICE, subscriptionService);
     
      subscriptionListenerService = new UDDISubscriptionListenerService();
      if (log.isDebugEnabled()) log.debug("Setting " + UDDI_SUBSCRIPTION_LISTENER_SERVICE + ", " + subscriptionListenerService.getClass());
      juddiContext.rebind(UDDI_SUBSCRIPTION_LISTENER_SERVICE, subscriptionListenerService);
     
      custodyTransferService = new UDDICustodyTransferService();
      if (log.isDebugEnabled()) log.debug("Setting " + UDDI_CUSTODY_TRANSFER_SERVICE + ", " + custodyTransferService.getClass());
      juddiContext.rebind(UDDI_CUSTODY_TRANSFER_SERVICE, custodyTransferService);
     
View Full Code Here

      if (log.isDebugEnabled()) log.debug("Setting " + UDDI_SUBSCRIPTION_LISTENER_SERVICE + ", " + subscriptionListenerService.getClass());
      juddiContext.rebind(UDDI_SUBSCRIPTION_LISTENER_SERVICE, subscriptionListenerService);
     
      custodyTransferService = new UDDICustodyTransferService();
      if (log.isDebugEnabled()) log.debug("Setting " + UDDI_CUSTODY_TRANSFER_SERVICE + ", " + custodyTransferService.getClass());
      juddiContext.rebind(UDDI_CUSTODY_TRANSFER_SERVICE, custodyTransferService);
     
      publisherService = new JUDDIApiService();
      if (log.isDebugEnabled()) log.debug("Setting " + JUDDI_PUBLISHER_SERVICE + ", " + publisherService.getClass());
      juddiContext.rebind(JUDDI_PUBLISHER_SERVICE, publisherService);
     
View Full Code Here

      if (log.isDebugEnabled()) log.debug("Setting " + UDDI_CUSTODY_TRANSFER_SERVICE + ", " + custodyTransferService.getClass());
      juddiContext.rebind(UDDI_CUSTODY_TRANSFER_SERVICE, custodyTransferService);
     
      publisherService = new JUDDIApiService();
      if (log.isDebugEnabled()) log.debug("Setting " + JUDDI_PUBLISHER_SERVICE + ", " + publisherService.getClass());
      juddiContext.rebind(JUDDI_PUBLISHER_SERVICE, publisherService);
     
    } catch (Exception e) {
      log.error(e.getMessage(),e);
    }
  }
View Full Code Here

                subCtx = subCtx.createSubcontext(name.get(i));
                if(Log.isDebugEnabled())Log.debug("Subcontext "+name.get(i)+" created");
            }
        }

        subCtx.rebind (name.get(name.size() - 1), obj);
        if(Log.isDebugEnabled())Log.debug("Bound object to "+name.get(name.size() - 1));
        return subCtx;
      
    }
   
View Full Code Here

        }
        try {
            namingStore.rebind(this, absoluteName, object, className);
        } catch(CannotProceedException cpe) {
            final Context continuationContext = NamingManager.getContinuationContext(cpe);
            continuationContext.rebind(cpe.getRemainingName(), object);
        }
    }

    /** {@inheritDoc} */
    public void rebind(final String name, final Object obj) throws NamingException {
View Full Code Here

     */
    public static void rebind(final Context ctx, final Name name, final Object value) throws NamingException {
       final int size = name.size();
       final String atom = name.get(size - 1);
       final Context parentCtx = createSubcontext(ctx, name.getPrefix(size - 1));
       parentCtx.rebind(atom, value);
    }

    /**
     * Unbinds a name from ctx, and removes parents if they are empty
     *
 
View Full Code Here

   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);
   }

   /** Unbinds a name from ctx, and removes parents if they are empty
    @param ctx the parent JNDI Context under which the name will be unbound
    @param name The name to unbind
View Full Code Here

      }

      log.debug("atom: " + atom);
      log.debug("link: " + link);
     
      fromCtx.rebind(atom, link);

      log.debug("Bound link " + fromName + " to " + toName);
   }
  
   /**
 
View Full Code Here

   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);
   }

   /** Unbinds a name from ctx, and removes parents if they are empty
    @param ctx, the parent JNDI Context under which the name will be unbound
    @param name, The name to unbind
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.