Creates a new instance of Endpoint this.serviceName = serviceName; this.endpointName = endpointName; this.endpointDesc = endpointDesc; setApplicationName(endpointDesc); this.url = endpointDesc.getEndpointAddressUri(); this.ejbType = endpointDesc.implementedByEjbComponent(); this.sei = endpointDesc.getServiceEndpointInterface(); this.implClass = implClass; this.jaxwsFlag = endpointDesc.getWebService().getMappingFileUri() == null; this.enabled = enabled; this.contextRoot = contextRoot; this.classLoader = endpointDesc.getBundleDescriptor().getClassLoader();
this.serviceName = serviceName; this.endpointName = endpointName; this.endpointDesc = endpointDesc; setApplicationName(endpointDesc); this.url = endpointDesc.getEndpointAddressUri(); this.ejbType = endpointDesc.implementedByEjbComponent(); this.sei = endpointDesc.getServiceEndpointInterface(); this.implClass = implClass; this.jaxwsFlag = endpointDesc.getWebService().getMappingFileUri() == null; this.enabled = enabled; this.contextRoot = contextRoot; this.classLoader = endpointDesc.getBundleDescriptor().getClassLoader();
return applicationName;
return classLoader;
return contextRoot;
return endpointDesc;
if(endpointMetaData == null) initializeEndpointMetaData(); return endpointMetaData;
return endpointName;
return implClass;
return jbiEndpoint;
return sei;
return serviceName;
return url;
return wsdlDocument;
return wsep;
if(endpointMetaData == null) { try { EndpointMetaData emd = new EndpointMetaData(readWSDLDefinition(), serviceName, endpointName); emd.resolve(); endpointMetaData = emd; } catch(Exception ex) { ex.printStackTrace(); } }
return enabled;
return ejbType;
return jaxwsFlag;
WSDLFactory mFactory = WSDLFactory.newInstance(); WSDLReader mReader = mFactory.newWSDLReader(); return (wsdlDocument!=null)? mReader.readWSDL(wsdlDocument.getDocumentURI(), wsdlDocument): mReader.readWSDL(endpointDesc.getWebService().getGeneratedWsdlFilePath());
For standalone apps get the registration name and for ear applications use the archive Uri. e.g.: 1. For web-app.war, applicationName will be 'web-app' 2. For enterprise-app.ear |__ ejb.jar |__ web.war applicationName will be 'web.war' BundleDescriptor bundleDescriptor = endpointDesc.getBundleDescriptor(); this.applicationName = (bundleDescriptor.getModuleDescriptor().isStandalone())? bundleDescriptor.getApplication().getRegistrationName(): bundleDescriptor.getModuleDescriptor().getArchiveUri();
BundleDescriptor bundleDescriptor = endpointDesc.getBundleDescriptor(); this.applicationName = (bundleDescriptor.getModuleDescriptor().isStandalone())? bundleDescriptor.getApplication().getRegistrationName(): bundleDescriptor.getModuleDescriptor().getArchiveUri();
enabled = flag;
this.endpointMetaData = emd;
endpointName = epName;
jbiEndpoint = jbiEp; /* setServiceName(jbiEp.getServiceName()); setEndpointName(jbiEp.getEndpointName()); */
serviceName = svcName;
this.wsdlDocument = wsdlDocument;
this.wsep = wsep;