Class JavasePackager
java.lang.Object
org.eclipse.persistence.tools.dbws.XRPackager
org.eclipse.persistence.tools.dbws.ProviderPackager
org.eclipse.persistence.tools.dbws.JavasePackager
- All Implemented Interfaces:
DBWSPackager
PUBLIC: JavasePackager extends ProviderPackager
. It generates a simplified version
of the JAX-WS Provider Endpoint that can be run using the Javase 6 'containerless' Endpoint API:
Endpoint endpoint = Endpoint.create(new @WebService or @WebServiceProvider); endpoint.publish(ENDPOINT_ADDRESS); QName serviceQName = new QName(serviceNamespace, serviceName); QName portQName = new QName(serviceNamespace, portName); service = Service.create(serviceQName); service.addPort(portQName, jakarta.xml.ws.soap.SOAPBinding.SOAP11HTTP_BINDING, ENDPOINT_ADDRESS); ... Dispatch<SOAPMessage> dispatch = testService.createDispatch(portQName, SOAPMessage.class, Service.Mode.MESSAGE); SOAPMessage response = dispatch.invoke(request); ...Package files generated by parent according to the following layout:
${PACKAGER_ROOT} - could be a directory or a .jar
file:
+---META-INF
| eclipselink-dbws-or.xml
| eclipselink-dbws-ox.xml
| eclipselink-dbws-sessions.xml
| eclipselink-dbws.xml
|
+---_dbws
| DBWSProvider.class
|
\---wsdl
swaref.xsd -- optional if using attachments
eclipselink-dbws-schema.xsd
eclipselink-dbws.wsdl
- Since:
- EclipseLink 1.x
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.persistence.tools.dbws.XRPackager
XRPackager.NullOutputStream
Nested classes/interfaces inherited from interface org.eclipse.persistence.tools.dbws.DBWSPackager
DBWSPackager.Archiver, DBWSPackager.ArchiveUse
-
Field Summary
Fields inherited from class org.eclipse.persistence.tools.dbws.ProviderPackager
DBWS_PROVIDER_SOAP11_MTOM_BINDING, DBWS_PROVIDER_SOAP12_BINDING, DBWS_PROVIDER_SOAP12_MTOM_BINDING, DBWS_PROVIDER_SOURCE_CLASSDEF, DBWS_PROVIDER_SOURCE_PORT_NAME, DBWS_PROVIDER_SOURCE_PREAMBLE_END, DBWS_PROVIDER_SOURCE_PREAMBLE_START, DBWS_PROVIDER_SOURCE_SERVICE_NAME, DBWS_PROVIDER_SOURCE_SOAP11HTTP_MTOM_BINDING, DBWS_PROVIDER_SOURCE_SOAP12HTTP_BINDING, DBWS_PROVIDER_SOURCE_SOAP12HTTP_MTOM_BINDING, DBWS_PROVIDER_SOURCE_SUFFIX, DBWS_PROVIDER_SOURCE_TARGET_NAMESPACE, DBWS_PROVIDER_SOURCE_WSDL_LOCATION, PROVIDER_LISTENER_SOURCE, PROVIDER_NAME
Fields inherited from class org.eclipse.persistence.tools.dbws.XRPackager
__nullStream, additionalArgs, ALL, archiver, archiveUse, builder, CONFIG, FINE, FINER, FINEST, hasAttachments, INFO, OFF, packagerLabel, sessionsFileName, SEVERE, stageDir, WARNING, XR_STR
-
Constructor Summary
ModifierConstructorDescriptionprotected
JavasePackager
(DBWSPackager.Archiver archiver, String packagerLabel, DBWSPackager.ArchiveUse useJavaArchive) -
Method Summary
Modifier and TypeMethodDescriptionby returning null, the generated _dbws.DDBWProvider class will have a slightly-different class annotation:Methods inherited from class org.eclipse.persistence.tools.dbws.ProviderPackager
getProviderClassStream, getProviderListenerClassStream, getProviderListenerSourceStream, getProviderSourceStream, getWSDLStream, writeProvider
Methods inherited from class org.eclipse.persistence.tools.dbws.XRPackager
buildSessionsXML, closeDeploymentDescriptorStream, closeOrStream, closeOxStream, closeProviderClassStream, closeProviderListenerClassStream, closeProviderListenerSourceStream, closeProviderSourceStream, closeSchemaStream, closeServiceStream, closeSessionsStream, closeStream, closeSWARefStream, closeWebXmlStream, closeWSDLStream, end, getAdditionalUsage, getArchiveFilename, getArchiver, getArchiverLabel, getDeploymentDescriptorFileName, getDeploymentDescriptorStream, getOrProjectPathPrefix, getOrStream, getOxProjectPathPrefix, getOxStream, getPackagerLabel, getSchemaStream, getServiceStream, getSessionsFileName, getSessionsStream, getStageDir, getSWARefStream, getUsage, getWebXmlStream, hasAttachments, processAdditionalArgs, processArchiveUse, setAdditionalArgs, setArchiveFilename, setArchiver, setArchiveUse, setDBWSBuilder, setHasAttachments, setSessionsFileName, setStageDir, start, writeDeploymentDescriptor, writeWebXml
-
Constructor Details
-
JavasePackager
public JavasePackager() -
JavasePackager
protected JavasePackager(DBWSPackager.Archiver archiver, String packagerLabel, DBWSPackager.ArchiveUse useJavaArchive)
-
-
Method Details
-
buildDefaultArchiver
- Overrides:
buildDefaultArchiver
in classProviderPackager
-
getWSDLPathPrefix
by returning null, the generated _dbws.DDBWProvider class will have a slightly-different class annotation:@WebServiceProvider( // note: no 'wsdlLocation' attribute serviceName = ${serviceName}, portName = ${servicePort}, targetNamespace = ${serviceNamespace} )
- Specified by:
getWSDLPathPrefix
in interfaceDBWSPackager
- Overrides:
getWSDLPathPrefix
in classXRPackager
-