Package org.jboss.wsf.spi.deployment

Examples of org.jboss.wsf.spi.deployment.Deployment


    */
   public void deploy(DeploymentUnit unit) throws DeploymentException
   {
      if (!ignoreDeployment(unit) && isWebServiceDeployment(unit))
      {
         Deployment dep = getDeployment(unit);
         if (null == dep || DeploymentState.CREATED != dep.getState())
            throw new DeploymentException("Create step failed");

         // execute the 'start' step
         getWsfRuntime().start(dep);
      }
View Full Code Here


    */
   public void deploy(DeploymentUnit unit) throws DeploymentException
   {
      if (!ignoreDeployment(unit) && isWebServiceDeployment(unit))
      {
         Deployment dep = getDeployment(unit);
         if(null==dep || DeploymentState.CREATED != dep.getState())
            throw new DeploymentException("Create step is missing");

         // execute the 'start' step
         getWsfRuntime().start(dep);         
      }
View Full Code Here

   }

   public void init(Endpoint ep)
   {
      String ejbName = ep.getShortName();
      Deployment dep = ep.getService().getDeployment();
      EJBArchiveMetaData apMetaData = dep.getAttachment(EJBArchiveMetaData.class);
      EJBMetaData beanMetaData = (EJBMetaData)apMetaData.getBeanByEjbName(ejbName);
      if (beanMetaData == null)
         throw new WebServiceException("Cannot obtain ejb meta data for: " + ejbName);

      // get the MBeanServer
View Full Code Here

                } catch (Exception e) {
                    throw new DeploymentUnitProcessingException(e);
                }
            }
            log.debug(this.aspect + " start: " + unit.getName());
            final Deployment dep = ASHelper.getRequiredAttachment(unit, WSAttachmentKeys.DEPLOYMENT_KEY);
            aspect.start(dep);
        }
    }
View Full Code Here

    @Override
    public void internalUndeploy(org.jboss.as.server.deployment.DeploymentUnit context) {
        if (ASHelper.isWebServiceDeployment(context)) {
            log.debug(this.aspect + " stop: " + context.getName());
            final Deployment dep = ASHelper.getRequiredAttachment(context, WSAttachmentKeys.DEPLOYMENT_KEY);
            aspect.stop(dep);
        }
    }
View Full Code Here

     * @param endpoint EJB webservice endpoint
     * @return EJB security meta data or null
     */
    private EJBSecurityMetaData getEjbSecurityMetaData(final Endpoint endpoint) {
        final String ejbName = endpoint.getShortName();
        final Deployment dep = endpoint.getService().getDeployment();
        final EJBArchiveMetaData ejbArchiveMD = WSHelper.getOptionalAttachment(dep, EJBArchiveMetaData.class);
        final EJBMetaData ejbMD = ejbArchiveMD != null ? ejbArchiveMD.getBeanByEjbName(ejbName) : null;

        return ejbMD != null ? ejbMD.getSecurityMetaData() : null;
    }
View Full Code Here

     */
    public ClassLoader getClassLoader(final Endpoint endpoint)
    {
        if (JBossDeployerUtil.isWebMetaDataPresent())
        {
            final Deployment deployment = endpoint.getService().getDeployment();
            final JBossWebMetaData attachment = deployment.getAttachment(JBossWebMetaData.class);
           
            if (attachment != null)
            {
                return attachment.getENCLoader() ;
            }
View Full Code Here

         // Get the deployment model factory
         SPIProvider spiProvider = SPIProviderResolver.getInstance().getProvider();
         DeploymentModelFactory depModelFactory = spiProvider.getSPI(DeploymentModelFactory.class);

         // Create/Setup the deployment
         Deployment deployment = depModelFactory.newDeployment("endpoint-deployment", implClass.getClassLoader());
         deployment.setRuntimeClassLoader(deployment.getInitialClassLoader());

         // Create/Setup the service
         Service service = deployment.getService();
         service.setContextRoot(contextRoot);

         // Create/Setup the endpoint
         org.jboss.wsf.spi.deployment.Endpoint ep = depModelFactory.newEndpoint(implClass.getName());
         service.addEndpoint(ep);
View Full Code Here

   {
      String contextRoot = context.getContextRoot();
     
      try
      {
         Deployment deployment = deployments.remove(contextRoot);
         if (deployment != null)
            getDeploymentAspectManager().undeploy(deployment);
      }
      catch (RuntimeException rte)
      {
View Full Code Here

   /**
    * The deployment should be created in phase 1.
    */
   public Deployment createDeployment(DeploymentUnit unit)
   {
      Deployment dep = unit.getAttachment(Deployment.class);
      if (null == dep)
         throw new IllegalStateException("spi.Deployment missing. It should be created in Phase 1");

      return dep;
   }
View Full Code Here

TOP

Related Classes of org.jboss.wsf.spi.deployment.Deployment

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.