Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.jboss.webservices.integration.deployers.deployment;
 
 import  org.jboss.metadata.ejb.jboss.JBossEnterpriseBeanMetaData;
 import  org.jboss.metadata.ejb.jboss.JBossMetaData;
 import  org.jboss.wsf.spi.deployment.Deployment;
 import  org.jboss.wsf.spi.deployment.integration.WebServiceDeployment;
 import  org.jboss.wsf.spi.metadata.webservices.PortComponentMetaData;
 import  org.jboss.wsf.spi.metadata.webservices.WebserviceDescriptionMetaData;
import  org.jboss.wsf.spi.metadata.webservices.WebservicesMetaData;

Creates new JAXRPC EJB21 deployment.

Author(s):
Richard Opalka
{

   
Constructor.
   {
      super();
   }

   
Creates new JAXRPC EJB21 deployment and registers it with deployment unit.

Parameters:
dep webservice deployment
unit deployment unit
   @Override
   protected void build(final Deployment depfinal DeploymentUnit unit)
   {
      final JBossMetaData jbmd = this.getAndPropagateAttachment(JBossMetaData.classunitdep);
      final WebservicesMetaData wsMetaData = this.getAndPropagateAttachment(WebservicesMetaData.classunitdep);
      this.getAndPropagateAttachment(WebServiceDeployment.classunitdep);
      this..debug("Creating JAXRPC EJB21 endpoints meta data model");
      for (final WebserviceDescriptionMetaData webserviceDescriptionMD : wsMetaData.getWebserviceDescriptions())
      {
         for (final PortComponentMetaData portComponentMD : webserviceDescriptionMD.getPortComponents())
         {
            final String ejbName = portComponentMD.getEjbLink();
            this..debug("EJB21 name: " + ejbName);
            final JBossEnterpriseBeanMetaData beanMetaData = jbmd.getEnterpriseBean(ejbName);
            final String ejbClass = beanMetaData.getEjbClass();
            this..debug("EJB21 class: " + ejbClass);
            this.newEndpoint(ejbClassejbNamedep);
         }
      }
   }
New to GrepCode? Check out our FAQ X