public PortComponentMetaData getPortComponentByEjbLinkName(String ejbName) { for (PortComponentMetaData pc : portComponents) { if (ejbName.equals(pc.getEjbLink())) return pc; } return null; }
/** * Creates new JAXRPC EJB21 deployment and registers it with deployment unit. * * @param dep webservice deployment * @param unit deployment unit */ @Override protected void build(final Deployment dep, final DeploymentUnit unit) { final JBossMetaData jbmd = this.getAndPropagateAttachment(JBossMetaData.class, unit, dep); final WebservicesMetaData wsMetaData = this.getAndPropagateAttachment(WebservicesMetaData.class, unit, dep); this.getAndPropagateAttachment(WebServiceDeployment.class, unit, dep); this.log.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.log.debug("EJB21 name: " + ejbName); final JBossEnterpriseBeanMetaData beanMetaData = jbmd.getEnterpriseBean(ejbName); final String ejbClass = beanMetaData.getEjbClass(); this.log.debug("EJB21 class: " + ejbClass); this.newEndpoint(ejbClass, ejbName, dep); } } }
private static EJBEndpoint newEjbEndpoint(final PortComponentMetaData portComponentMD, final EEModuleDescription moduleDescription, final Set<String> securityRoles) { final String ejbName = portComponentMD.getEjbLink(); final SessionBeanComponentDescription sessionBean = (SessionBeanComponentDescription)moduleDescription.getComponentByName(ejbName); final String seiIfaceClassName = portComponentMD.getServiceEndpointInterface(); final EJBViewDescription ejbViewDescription = sessionBean.addWebserviceEndpointView(seiIfaceClassName); // JSR 109 - Version 1.3 - 6.2.2.4 Security // For EJB based service implementations, Handlers run after method level authorization has occurred. // JSR 109 - Version 1.3 - 6.2.2.5 Transaction // Handlers run under the transaction context of the component they are associated with. sessionBean.getConfigurators().addLast(new JAXRPCHandlersConfigurator()); final ServiceName ejbViewName = ejbViewDescription.getServiceName(); return new EJBEndpoint(sessionBean, ejbViewName, securityRoles, null, false, null); }
/** * Creates new JAXRPC EJB21 deployment and registers it with deployment unit. * * @param dep webservice deployment * @param unit deployment unit */ @Override protected void build(final Deployment dep, final DeploymentUnit unit) { final JBossMetaData jbmd = this.getAndPropagateAttachment(JBossMetaData.class, unit, dep); final WebservicesMetaData wsMetaData = this.getAndPropagateAttachment(WebservicesMetaData.class, unit, dep); this.getAndPropagateAttachment(WebServiceDeployment.class, unit, dep); this.log.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.log.debug("EJB21 name: " + ejbName); final JBossEnterpriseBeanMetaData beanMetaData = jbmd.getEnterpriseBean(ejbName); final String ejbClass = beanMetaData.getEjbClass(); this.log.debug("EJB21 class: " + ejbClass); this.newEndpoint(ejbClass, ejbName, dep); } } }
/** * Creates new JAXRPC EJB21 deployment and registers it with deployment unit. * * @param dep webservice deployment * @param unit deployment unit */ @Override protected void build(final Deployment dep, final DeploymentUnit unit) { final JBossMetaData jbmd = this.getAndPropagateAttachment(JBossMetaData.class, unit, dep); final WebservicesMetaData wsMetaData = this.getAndPropagateAttachment(WebservicesMetaData.class, unit, dep); this.getAndPropagateAttachment(WebServiceDeployment.class, unit, dep); this.log.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.log.debug("EJB21 name: " + ejbName); final JBossEnterpriseBeanMetaData beanMetaData = jbmd.getEnterpriseBean(ejbName); final String ejbClass = beanMetaData.getEjbClass(); this.log.debug("EJB21 class: " + ejbClass); this.newEndpoint(ejbClass, ejbName, dep); } } }
String ejbLink = pcmd.getEjbLink(); if (ejbLink == null) throw new IllegalStateException("ejb-link cannot be null");
String ejbLink = pcmd.getEjbLink(); if (ejbLink == null) throw new IllegalStateException("ejb-link cannot be null");
String ejbLink = pcmd.getEjbLink(); if (ejbLink == null) throw new IllegalStateException("ejb-link cannot be null");
String ejbLink = pcmd.getEjbLink(); if (ejbLink == null) throw new IllegalStateException("ejb-link cannot be null");
String ejbLink = pcmd.getEjbLink(); if (ejbLink == null) throw new IllegalStateException("ejb-link cannot be null");
String ejbLink = pcmd.getEjbLink(); if (ejbLink == null) throw new IllegalStateException("ejb-link cannot be null");
String ejbLink = pcmd.getEjbLink(); if (ejbLink == null) throw new IllegalStateException("ejb-link cannot be null");
String ejbLink = pcmd.getEjbLink(); if (ejbLink == null) throw new IllegalStateException("ejb-link cannot be null");
for (PortComponentMetaData pcMetaData : pcMetaDataArr) String linkName = pcMetaData.getEjbLink() != null ? pcMetaData.getEjbLink() : pcMetaData.getServletLink(); QName portName = pcMetaData.getWsdlPort();
final String linkedId = portComp.getEjbLink() != null ? portComp.getEjbLink() : portComp.getServletLink(); final String id = endpoint.getId(); if (!id.equals(linkedId)) continue;