Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "EclipseLink/Examples/DBWS/AdvancedJavase6Containerless"

(DBWSBuilder javase packager)
Line 18: Line 18:
 
                               ^^^^^^
 
                               ^^^^^^
 
</source>
 
</source>
 +
 +
The content of the <tt>.jar</tt> file is arranged differently from how the <tt>wls</tt> packager builds a <tt>.war</tt> file:
 +
<source lang="text">
 +
wls packager
 +
root of war file
 +
    \---web-inf
 +
    |
 +
    |  web.xml
 +
    |
 +
    +---classes
 +
    |  |
 +
    |  +---META-INF
 +
    |  |      eclipselink-dbws.xml
 +
    |  |      eclipselink-dbws-or.xml
 +
    |  |      eclipselink-dbws-ox.xml
 +
    |  |      eclipselink-dbws-sessions.xml
 +
    |  |
 +
    |  \---_dbws
 +
    |          DBWSProvider.class            -- auto-generated JAX-WS 2.0 Provider
 +
    |
 +
    \---wsdl
 +
            eclipselink-dbws-schema.xsd
 +
            eclipselink-dbws.wsdl
 +
 +
javase packager
 +
root of jar file
 +
+---META-INF
 +
|      eclipselink-dbws-or.xml
 +
|      eclipselink-dbws-ox.xml
 +
|      eclipselink-dbws-sessions.xml
 +
|      eclipselink-dbws.xml
 +
|     
 +
+---wsdl
 +
|      eclipselink-dbws-schema.xsd
 +
|      eclipselink-dbws.wsdl
 +
|     
 +
\---_dbws
 +
        DBWSProvider.class
 +
</source>
 +
 
</onlyinclude>
 
</onlyinclude>

Revision as of 14:57, 20 April 2009

DBWS Services running 'containerless' using the Endpoint API

It is possible to run a Web service using Javase 6's "containerless" javax.xml.ws.Endpoint API.

Javase 6 ships with the JAX-WS 2.x APIx inside the JDK - versions prior to update 4 have JAX-WS 2.0 APIs, which may cause some issues with later API requirements: to fix this, copy jaxws-api.jar and jaxb-api.jar into the endorsed directory (typically $JAVA_HOME/lib/endorsed or $JDK_HOME/jre/lib/endorsed). Please see this link for more details.

DBWSBuilder javase packager

When invoked from the command-line, the DBWSBuilder offers out-of-the-box support for building and packaging DBWS Services for either the WebLogic server or for running 'containerless' using the javax.xml.ws.Endpoint API

DBWSBuilder usage - [] indicates optional argument:
prompt > dbwsbuilder.cmd -builderFile {path_to_builder.xml} -stageDir {path_to_stageDir} -packageAs[:archive_flag] {packager} [additional args]
Available packagers:
  -packageAs:[default=archive] wls [warFilename]
  -packageAs:[default=archive] javase [jarFilename]
                               ^^^^^^

The content of the .jar file is arranged differently from how the wls packager builds a .war file:

wls packager
 root of war file
    \---web-inf
    |
    |   web.xml
    |
    +---classes
    |   |
    |   +---META-INF
    |   |       eclipselink-dbws.xml
    |   |       eclipselink-dbws-or.xml
    |   |       eclipselink-dbws-ox.xml
    |   |       eclipselink-dbws-sessions.xml
    |   |
    |   \---_dbws
    |           DBWSProvider.class            -- auto-generated JAX-WS 2.0 Provider
    |
    \---wsdl
            eclipselink-dbws-schema.xsd
            eclipselink-dbws.wsdl
 
javase packager
 root of jar file
+---META-INF
|       eclipselink-dbws-or.xml
|       eclipselink-dbws-ox.xml
|       eclipselink-dbws-sessions.xml
|       eclipselink-dbws.xml
|       
+---wsdl
|       eclipselink-dbws-schema.xsd
|       eclipselink-dbws.wsdl
|       
\---_dbws
        DBWSProvider.class


Back to the top