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>


Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

sameert

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today