Examples of WSFRuntime


Examples of org.jboss.wsf.spi.WSFRuntime

      try
      {
         // Get the deployment model factory
         SPIProvider spiProvider = SPIProviderResolver.getInstance().getProvider();
         WSFRuntimeLocator locator = spiProvider.getSPI(WSFRuntimeLocator.class);
         WSFRuntime runtime = locator.locateRuntime("EndpointAPIRuntime");

         DeploymentModelFactory depModelFactory = spiProvider.getSPI(DeploymentModelFactory.class);

         // Create/Setup the deployment
         Deployment dep = depModelFactory.newDeployment("endpoint-deployment", implClass.getClassLoader());
         dep.setType(Deployment.DeploymentType.JAXWS_JSE);
         dep.setRuntimeClassLoader(dep.getInitialClassLoader());
        
         // TODO: Hack, should this become another DeploymentAspect?
         ((ArchiveDeployment)dep).setRootFile(new ResourceLoaderAdapter());

         // Create/Setup the service
         Service service = dep.getService();
         service.setContextRoot(context.getContextRoot());

         // Create/Setup the endpoint
         org.jboss.wsf.spi.deployment.Endpoint ep = depModelFactory.newEndpoint(implClass.getName());
         ep.setShortName(implClass.getName()+"-Endpoint");
         ep.setURLPattern("/*");
         service.addEndpoint(ep);

         // Deploy using deployment aspects
         runtime.create(dep)
         runtime.start(dep)
      }
      catch (RuntimeException rte)
      {
         throw rte;
      }
View Full Code Here

Examples of org.jboss.wsf.spi.WSFRuntime

         org.jboss.wsf.spi.deployment.Endpoint ep = depModelFactory.newEndpoint(implClass.getName());
         service.addEndpoint(ep);

         // Deploy using deployment aspects
         WSFRuntimeLocator locator = spiProvider.getSPI(WSFRuntimeLocator.class);
         WSFRuntime runtime = locator.locateRuntime(runtimeName);
       
         runtime.create(dep);        
         runtime.start(dep);
      }
      catch (RuntimeException rte)
      {
         throw rte;
      }
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.