Jump to: navigation, search

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

Line 5: Line 5:
 
with later API requirements: to fix this, copy <tt>jaxws-api.jar</tt> and <tt>jaxb-api.jar</tt> into the ''endorsed'' directory (typically <tt>$JAVA_HOME/lib/endorsed</tt> or <tt>$JDK_HOME/jre/lib/endorsed</tt>). Please see [http://kingsfleet.blogspot.com/2008/07/so-i-want-to-use-jax-ws-ri-with-jdk-6.html this link] for more details.
 
with later API requirements: to fix this, copy <tt>jaxws-api.jar</tt> and <tt>jaxb-api.jar</tt> into the ''endorsed'' directory (typically <tt>$JAVA_HOME/lib/endorsed</tt> or <tt>$JDK_HOME/jre/lib/endorsed</tt>). Please see [http://kingsfleet.blogspot.com/2008/07/so-i-want-to-use-jax-ws-ri-with-jdk-6.html this link] for more details.
  
===<code>DBWSBuilder javase</code> packager===
+
===<tt>DBWSBuilder javase</tt> packager===
When invoked from the command-line, the <code>DBWSBuilder</code> offers out-of-the-box support for building and packaging DBWS Services for either the WebLogic server or for running 'containerless' using the [http://java.sun.com/javase/6/docs/api/javax/xml/ws/Endpoint.html javax.xml.ws.Endpoint API]
+
When invoked from the command-line, the <tt>DBWSBuilder</tt> offers out-of-the-box support for building and packaging DBWS Services for either the WebLogic server or for running 'containerless' using the [http://java.sun.com/javase/6/docs/api/javax/xml/ws/Endpoint.html javax.xml.ws.Endpoint API]
 +
<css>
 +
  .source-text {border-style: solid;}
 +
</css>
 +
<source lang="text">
 +
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]
 +
                              ^^^^^^
 +
</source>
 
</onlyinclude>
 
</onlyinclude>

Revision as of 13:51, 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]
                               ^^^^^^