return true;
}
public boolean configureEJB(GBeanData targetGBean, String ejbName, Module module, Map sharedContext, ClassLoader classLoader) throws DeploymentException {
Map portInfoMap = (Map) sharedContext.get(KEY);
PortInfo portInfo = (PortInfo) portInfoMap.get(ejbName);
if (portInfo == null) {
//not ours
return false;
}
String beanClassName = (String)targetGBean.getAttribute("ejbClass");
Class serviceClass = loadClass(beanClassName, classLoader);
if (isJAXWSWebService(serviceClass)) {
if (DescriptorVersion.J2EE.equals(portInfo.getDescriptorVersion())) {
// This is a JAX-WS web service in J2EE descriptor so throw an exception
throw new DeploymentException("JAX-WS web service '" + portInfo.getPortComponentName()
+ "' cannot be specified in J2EE webservices.xml descriptor.");
} else {
// This is a JAX-WS web service in JAVAEE descriptor so ignore
return false;
}
}
portInfo.initialize(module.getModuleFile());
LOG.debug("Publishing EJB JAX-RPC '" + portInfo.getPortComponentName()
+ "' service at " + portInfo.getContextURI());
ServiceInfo serviceInfo = AxisServiceBuilder.createServiceInfo(portInfo, classLoader);
targetGBean.setAttribute("serviceInfo", serviceInfo);
JavaServiceDesc serviceDesc = serviceInfo.getServiceDesc();
URI location = portInfo.getContextURI();
targetGBean.setAttribute("location", location);
URI wsdlURI;
try {
wsdlURI = new URI(serviceDesc.getWSDLFile());
} catch (URISyntaxException e) {