Package intf.services

Examples of intf.services.XCATBuilderService


      container.createComponentInstance(instanceName,
          instanceGSH,
          className);

      System.out.println("Creating a reference to the BuilderService");
      XCATBuilderService builder = (XCATBuilderService)
  HandleResolver.resolveHandle(builderHandle,
             XCATBuilderService.class.getName());

      System.out.println("Notifying the Builder that instantiation is complete");
      builder.instantiationComplete(instanceName,
            instanceGSH);
    } catch (Exception e) {
      logger.severe(e.toString(), e);
      System.exit(1);
    }
View Full Code Here


    // notify that this is a migration
    componentEnv.putString("componentHandle", cInfo.getInstanceHandle());
    componentEnv.putBool("isMigrated", true);

    // invoke the Builder Service to create a new instance
    XCATBuilderService builderService = null;
    try {
      builderService = new XCATBuilderServiceImpl(false);
    } catch (Exception e) {
      logger.severe("Can't instantiate Builder service", e);
      throw new NonstandardException("Can't instantiate Builder service", e);
    }
    String builderGSH = HandleResolver.createGSH("coordinatorbuilderService");
    builderService.setGSH(builderGSH);
    HandleResolver.addReference(builderGSH, builderService);
    builderService.createInstance(cInfo.getInstanceName(),
          className,
          componentEnv);

  }
View Full Code Here

TOP

Related Classes of intf.services.XCATBuilderService

Copyright © 2018 www.massapicom. 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.