Blog entries in category "Java" shown here:
See other entries in category :
Whateveah | Java | All
20060716 Sunday July 16, 2006

Accessing JAX-WS endpoints with Java WebStart

Java Web Start is a software distribution technology and can be used to distribute JAX-WS clients. Essentially one writes and deploys a JNLP file on the server. The example I will use is the one described in a previous entry here. You still need to sign the jar files to grant them security permissions and Java Web Start also works on a sandbox model. Here is the except of the JNLP file. Note that you can use either the applet-desc or application-desc tag depending on your code. We use the applet-desc since our previous example was an Applet jar. Also you dont need the JAX-WS runtime on the client if you use Java SE 6 or Mustang and set <j2se version="1.6+" />
<?xml version="1.0" encoding="utf-8"?>
 <jnlp spec="1.0+" codebase="http://localhost:8080" href="webstart.jnlp">
 <information>
 <title>JAX-WS WebStart Demo</title>
 <vendor>Sun Microsystems</vendor>
 <homepage href="http://localhost:8080" />
 <description>A Java Webstart test</description>
 </information>
 <resources>
 <j2se version="1.5+" />
 <jar href="SignedApplet.jar" />
 <jar href="sjavaee.jar" />
 <jar href="sappserv-ws.jar" />
 </resources>
 <security>
 <all-permissions />
 </security>
 <applet-desc main-class="JAXWSApplet" name="JAXWSApplet" width="640" height="256"/>
 <param name="endpointURL" value="http://localhost:8080/docliteralfromwsdl-war/jaxws"/>
 </applet-desc>
 </jnlp>

( Jul 16 2006, 06:28:24 PM EDT ) Permalink Comments [0]
Trackback URL: http://blogs.sun.com/sameert/en/entry/accessing_jax_ws_endpoints_with
Comments:

Post a Comment:

Name:
E-Mail:
URL:

Your Comment:

HTML Syntax: NOT allowed