WebSphere Application Server Network Deployment, Version 6.0.x     Operating Systems: AIX, HP-UX, Linux, Solaris, Windows

Client application Java Network Launcher Protocol deployment descriptor file

The deployment descriptor file is the main Java Network Launcher Protocol (JNLP) descriptor file for the client application. The client application has an Application Clients run-time dependency that provides the Java 2 Runtime Environment from IBM, Application Clients run-time properties, the SSL KeyStore and TrustStore file, and the Application Clients run-time library JAR files (optional for Thin Application client applications). If the Application Clients run-time dependency is not met, it is downloaded and installed in Java Web Start (JWS), as described by the Application Clients run-time installer JNLP descriptor file.
<j2se version="WASclient6.0" href="/WebSphereClientRuntimeWeb/Runtime/jnlp.jsp"/>
It must also include the WebSphereClientLauncher.jar file, which contains the launcher class, com.ibm.websphere.client.launcher.ClientLauncher, that completes one of the following actions:

Example

<%--    This is a generic jnlp for a client app.  It will specify the WAS JRE    
			 as a dependency as well as the client launcher 
-->
<%! private final String description="J2EE Client Example";   	private final 
String earName="J2EEWebStart.ear"; 
%>
<%  // locally declared variable     

String	urlSt = request.getRequestURL().toString();     
String	jnlpCodeBase=urlSt.substring(0,urlSt.lastIndexOf('/'));     
String	jnlpRefURL=urlSt.substring(urlSt.lastIndexOf('/')+1,urlSt.length());     
// The client application descriptor noted a resource reference to be resolved at deploy time as following 
%>
<%--     
	Need to set a JNLP mime type - if Web Start is installed on the client,     
	this header will induce the browser to drive the Web Start Client 

--%><% 
	response.setContentType("application/x-java-jnlp-file");   1 
	response.setHeader("Cache-Control", null); 
	response.setHeader("Set-Cookie", null); 
	response.setHeader("Vary", null); 
%>
<?xml version="1.0" encoding="utf-8"?
<!-- JNLP File for <%=description %> -->
<jnlp
  spec="1.0+"
	<%-- Automate the code base response
-->% codebase="<%=jnlpCodeBase%>"
href="<%=jnlpRefURL%>"
	<information>
		<title><%=description %></title>
		<description kind="short"><%=description %></description>
		<description kind="tooltip"><%=description %></description>
		<offline-allowed></offline-allowed>
	</information>
	<security>
	<all-permissions></all-permissions>
</security>
	<resources>
  	<%-- The URL for the Client JRE installer --%>
    WASclient6.0" 
href="/WebSphereClientRuntimeWeb/Runtime/jnlp.jsp"></j2se>	2

		<%-- Specify the client launcher --%>
    <jar href="../Launcher/WebSphereClientLauncher.jar" main="true"> </jar>	3

		<%-- Ear we want to download to the client --%>
    
	  <jar href="<%=earName%>"></jar>	4
    <%-- The launcher depends on this property to be set --%>
    <property name="com.ibm.websphere.client.launcher.ear"
value="<%=earName%>"><property>	5


		<resources>
<%-- Web Start will consider the Launcher as the application to run -->
<application-desc>	6
<argument>-CCproviderURL=corbaloc:iiop:your_server_hostname </argument>		7
<
	<argument>-
CCDcom.ibm.ssl.keyStore=\${install_root}/etc/DummyClientKeyFile.jks</argument>		8

<argument>-
CCDcom.ibm.ssl.trustStore=\${install_root}/etc/DummyClientTrustFile.jksCCDcom.ibm.ssl.trustStore=\${install_root}/etc/DummyClientTrustFile.jks</argument>	9
</application-desc>
</jnlp>

  



Sub-topics
ClientLauncher class

Related tasks
Preparing the Application Client run-time dependency component for Java Web Start
Preparing Application Clients run-time library component for Java Web Start
Using Java Web Start

Related reference
launchClient tool

Concept topic    

Terms of Use | Feedback

Last updated: Mar 17, 2005 4:28:29 AM CST
http://publib.boulder.ibm.com/infocenter/ws60help/index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/ae/ccli_jnlp.html

© Copyright IBM Corporation 2002, 2005. All Rights Reserved.
This information center is powered by Eclipse technology. (http://www.eclipse.org)