Package javax.naming

Examples of javax.naming.Context.rebind()


            TransactionManager transactionManager = SystemInstance.get().getComponent(TransactionManager.class);
            comp.rebind("TransactionManager", transactionManager);

            // bind TransactionSynchronizationRegistry
            TransactionSynchronizationRegistry synchronizationRegistry = SystemInstance.get().getComponent(TransactionSynchronizationRegistry.class);
            comp.rebind("TransactionSynchronizationRegistry", synchronizationRegistry);

            comp.rebind("ORB", new SystemComponentReference(ORB.class));
            comp.rebind("HandleDelegate", new SystemComponentReference(HandleDelegate.class));

            if (webContext != null) {
View Full Code Here


            // bind TransactionSynchronizationRegistry
            TransactionSynchronizationRegistry synchronizationRegistry = SystemInstance.get().getComponent(TransactionSynchronizationRegistry.class);
            comp.rebind("TransactionSynchronizationRegistry", synchronizationRegistry);

            comp.rebind("ORB", new SystemComponentReference(ORB.class));
            comp.rebind("HandleDelegate", new SystemComponentReference(HandleDelegate.class));

            if (webContext != null) {
                comp.rebind("BeanManager", webContext.getAppContext().getBeanManager());
            }
View Full Code Here

            // bind TransactionSynchronizationRegistry
            TransactionSynchronizationRegistry synchronizationRegistry = SystemInstance.get().getComponent(TransactionSynchronizationRegistry.class);
            comp.rebind("TransactionSynchronizationRegistry", synchronizationRegistry);

            comp.rebind("ORB", new SystemComponentReference(ORB.class));
            comp.rebind("HandleDelegate", new SystemComponentReference(HandleDelegate.class));

            if (webContext != null) {
                comp.rebind("BeanManager", webContext.getAppContext().getBeanManager());
            }
        } catch (Exception ignored) {
View Full Code Here

            comp.rebind("ORB", new SystemComponentReference(ORB.class));
            comp.rebind("HandleDelegate", new SystemComponentReference(HandleDelegate.class));

            if (webContext != null) {
                comp.rebind("BeanManager", webContext.getAppContext().getBeanManager());
            }
        } catch (Exception ignored) {
            ignored.printStackTrace();
            // no-op
        }
View Full Code Here

      Context context = null;
      try
      {
         context = new InitialContext();

         context.rebind(VALIDATOR_FACTORY, new SerializableValidatorFactory(validatorFactory));
         context.rebind(VALIDATOR, new SerializableValidator(validator));
      }
      finally
      {
         try
View Full Code Here

      try
      {
         context = new InitialContext();

         context.rebind(VALIDATOR_FACTORY, new SerializableValidatorFactory(validatorFactory));
         context.rebind(VALIDATOR, new SerializableValidator(validator));
      }
      finally
      {
         try
         {
View Full Code Here

        }

        // Attempt to change the value of an existing binding
        try {
            if (ok) {
                envContext.rebind("stringEntry", "Changed Value");
                sb.append("  Allowed rebind().");
                value = envContext.lookup("stringEntry");
                if ((value != null) &&
                    (value instanceof String) &&
                    "Changed Value".equals((String) value))
View Full Code Here

    try {
      Context juddiContext = context.createSubcontext(JUDDI);
     
      securityService = new UDDISecurityService();
      if (log.isDebugEnabled()) log.debug("Setting " + UDDI_SECURITY_SERVICE + ", " + securityService.getClass());
      juddiContext.rebind(UDDI_SECURITY_SERVICE, securityService);
     
      publicationService = new UDDIPublicationService();
      if (log.isDebugEnabled()) log.debug("Setting " + UDDI_PUBLICATION_SERVICE + ", " + publicationService.getClass());
      juddiContext.rebind(UDDI_PUBLICATION_SERVICE, publicationService);
     
View Full Code Here

      if (log.isDebugEnabled()) log.debug("Setting " + UDDI_SECURITY_SERVICE + ", " + securityService.getClass());
      juddiContext.rebind(UDDI_SECURITY_SERVICE, securityService);
     
      publicationService = new UDDIPublicationService();
      if (log.isDebugEnabled()) log.debug("Setting " + UDDI_PUBLICATION_SERVICE + ", " + publicationService.getClass());
      juddiContext.rebind(UDDI_PUBLICATION_SERVICE, publicationService);
     
      inquiryService = new UDDIInquiryService();
      if (log.isDebugEnabled()) log.debug("Setting " + UDDI_INQUIRY_SERVICE + ", " + inquiryService.getClass());
      juddiContext.rebind(UDDI_INQUIRY_SERVICE, inquiryService);
     
View Full Code Here

      if (log.isDebugEnabled()) log.debug("Setting " + UDDI_PUBLICATION_SERVICE + ", " + publicationService.getClass());
      juddiContext.rebind(UDDI_PUBLICATION_SERVICE, publicationService);
     
      inquiryService = new UDDIInquiryService();
      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);
     
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.