Examples of ServiceContainer


Examples of net.reversehttp.messaging.ServiceContainer

            String hostAndPort = (args.length > 1) ? args[1]
                    : "localhost.lshift.net:8000";
            URL serverUrl = new URL("http://" + hostAndPort + "/reversehttp");
            String label = "javasub" + new Random().nextInt(100000);
            String containerDomain = label + "." + hostAndPort;
            ServiceContainer container = new ServiceContainer(containerDomain);
            Address targetAddress = new Address("queue", containerDomain);
            container.bindName(targetAddress, new Sub(targetAddress, Address
                    .parse(sourceStr)));
            HttpServer httpd = new ReverseHttpServer(label, serverUrl,
                    container);
            httpd.serve();
        } catch (Exception e) {
View Full Code Here

Examples of net.reversehttp.messaging.ServiceContainer

            String ownAddressStr = (args.length > 1) ? args[1]
                    : "queue@localhost.lshift.net:8001";
            int port = (args.length > 2) ? Integer.parseInt(args[2]) : 8001;
            Address ownAddress = Address.parse(ownAddressStr);

            ServiceContainer container = new ServiceContainer(ownAddress
                    .getDomain());
            container.bindName(ownAddress, new Sub(ownAddress, Address
                    .parse(sourceStr)));
            HttpServer httpd = new NormalHttpServer(port, container);
            httpd.serve();
        } catch (Exception e) {
            e.printStackTrace();
View Full Code Here

Examples of org.apache.fulcrum.yaafi.framework.container.ServiceContainer

        Validate.notNull(context,"context");

        String clazzName;
        Class clazz = null;
        Configuration configuration = null;
        ServiceContainer result = null;

        // Enforce a logger from the caller

        try
        {
View Full Code Here

Examples of org.hivedb.services.ServiceContainer

    }, instances));
    return serviceResponse;
  }

  public ServiceContainer createServiceContainer(Object instance, Integer version) {
    ServiceContainer serviceContainer = (ServiceContainer) GeneratedClassFactory.newInstance(serviceContainerClass);
    // Fill the ServiceContainer methods
    GeneratedInstanceInterceptor.setProperty(serviceContainer, "instance", instance);
    GeneratedInstanceInterceptor.setProperty(serviceContainer, "version", version);
    // Create a getter for ServiceContainer implementors (e.g. getWeatherReport() for the WeatherReport class)
    // A strongly-typed method like this is needed by SOAP clients, otherwise getInstance() would suffice.
View Full Code Here

Examples of org.jboss.ejb3.service.ServiceContainer

      {
         case SERVICE :
            try
            {
               domain = getDomain("Service Bean");
               container = new ServiceContainer(null, loader, beanClassName, ejbName, domain, ctxProperties,
                     deployment, (JBossServiceBeanMetaData) md);
            }
            catch (ClassNotFoundException cnfe)
            {
               throw new RuntimeException("Could not create SLSB Container for " + beanClassName, cnfe);
View Full Code Here

Examples of org.jboss.ejb3.service.ServiceContainer

               container.setJaccContextId(getJaccContextId());
               containers.add(container);
            }
            else if (ejbType == EJB_TYPE.SERVICE)
            {
               ServiceContainer container = getServiceContainer(ejbIndex, (JBossServiceBeanMetaData) enterpriseBean);
               container.setJaccContextId(getJaccContextId());
               containers.add(container);
            }
            else if (ejbType == EJB_TYPE.CONSUMER)
            {
               ConsumerContainer container = getConsumerContainer(ejbIndex, (JBossConsumerBeanMetaData) enterpriseBean);
               container.setJaccContextId(getJaccContextId());
               containers.add(container);
            }
            log.debug("found EJB3: ejbName=" + ejbName + ", class=" + className + ", type=" + ejbType);
         }
      }
View Full Code Here

Examples of org.jboss.ejb3.service.ServiceContainer

   protected ServiceContainer getServiceContainer(int ejbIndex, JBossServiceBeanMetaData service)
         throws Exception
   {
      String ejbName = ejbNames.get(ejbIndex);

      ServiceContainer container = super.getServiceContainer(ejbIndex, service);
      ServiceImpl annotation = new ServiceImpl((Service) container
            .resolveAnnotation(Service.class));

      container.setAssemblyDescriptor(dd.getAssemblyDescriptor());

      if (service != null && !isAnnotatedBean())
      {
         if (service.getObjectName() != null)
            annotation.setObjectName(service.getObjectName());
View Full Code Here

Examples of org.jboss.ejb3.test.proxy.impl.common.container.ServiceContainer

      Thread.currentThread().setContextClassLoader(cl);
      try
      {
         Class<?> beanClass = cl.loadClass(MyServiceBean.class.getName());
        
         ServiceContainer container = Utils.createService(beanClass);
        
         Ejb3RegistrarLocator.locateRegistrar().bind(container.getName(), container);
      }
      finally
      {
         Thread.currentThread().setContextClassLoader(master);
      }
View Full Code Here

Examples of org.jboss.msc.service.ServiceContainer

        }
        ControllerInitializer controllerInitializer = additionalInit.createControllerInitializer();
        additionalInit.setupController(controllerInitializer);

        //Initialize the controller
        ServiceContainer container = ServiceContainer.Factory.create("test" + counter.incrementAndGet());
        ServiceTarget target = container.subTarget();
        ControlledProcessState processState = new ControlledProcessState(true);
        List<ModelNode> extraOps = controllerInitializer.initializeBootOperations();
        List<ModelNode> allOps = new ArrayList<ModelNode>();
        if (extraOps != null) {
            allOps.addAll(extraOps);
View Full Code Here

Examples of org.jboss.msc.service.ServiceContainer

        ROOT_LOGGER.debugf("Starting: %s in mode %s", serviceController.getName(), serviceController.getMode());

        final Map<ServiceName, OSGiModule> pendingServices = new LinkedHashMap<ServiceName, OSGiModule>();
        try {
            final BundleManagerService bundleManager = injectedBundleManager.getValue();
            final ServiceContainer serviceContainer = serviceController.getServiceContainer();
            serviceTarget = context.getChildTarget();

            modulesDir = injectedEnvironment.getValue().getModulesDir();
            bundlesDir = new File(modulesDir.getPath() + "/../bundles").getCanonicalFile();
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.