+

Search Tips   |   Advanced Search

 

JNLP descriptor file for a J2EE Application client application

 

The deployment descriptor file is the main Java Network Launcher Protocol (JNLP) descriptor file for the client application. If it is a J2EE Application client application (that is the resources for the application contain an EAR file with a client application), then the launcher class starts a second Java Virtual Machine (JVM) using the JRE provided by the Application Clients run-time dependency and launches the J2EE Application client application that is packaged in the EAR file.

 

Example

Here is an example of the client application JNLP descriptor file for a J2EE Application client application.

<!--
"This sample program is provided AS IS and may be used, executed, copied and  modified without royalty payment by customer (a) for its own instruction and  study, (b) in order to develop applications designed to run with an IBM  WebSphere product, either for customer's own internal use or for  redistribution by customer, as part of such an application, in customer's  own products."

Product 5630-A36,  (C) COPYRIGHT International Business Machines Corp., 2004
All Rights Reserved * Licensed Materials - Property of IBM
–->
<!–-
  This is a generic jnlp for a client app.  It will specify the WAS JRE
  as a dependency as well as the client launcher
–->
<!-- ==================================================================== -->
<!-- TODO: change "codebase" to the actual url location of this jnlp file -->
<!-- ==================================================================== -->
<jnlp spec="1.0+" 
 codebase="http://your_server:port_number/J2EEWebStartWeb/JavaClients/WebStartExample">

  <information>
    <title>J2EE Client Exampletitle>J2EE Client Example</title>
    <vendor>IBM Client Teamvendor>IBM Client Team</vendor>
    <description>JVE WebStart example of: J2EE Client Example</description>
    <description kind="short">J2EE Client Example</description>
    <description kind="tooltip">J2EE Client Example</description>
  </information>

  <security>
    <all-permissions/>
  </security>

  <resources>

    <!–- ========================================================================= -–>
    <!–- TODO: Update the "version" value to match your Application Client runtime -–>
    <!–-       Update the "href" value to the url for downloading the Application  -–>
    <!–-       Client runtime.                                                     -–>
    <!–- ========================================================================= -–>
    <j2se version="WASClient6.1.0"
     href="/WebSphereClientRuntimeWeb/Runtime/WebSphereJre/AppClientRT.jsp"/

    <!–- The client app will require a client launcher -–>
    <jar href="../Launcher/WebSphereClientLauncher.jar" main="true"/>

    <!–- Ear we want to download to the client -–>
    <jar href="J2eeJWS.ear"/>

    <!–- The launcher depends on this property to be set -–>
    <property name="com.ibm.websphere.client.launcher.ear" value="J2eeJWS.ear"/>

  </resources>

  <!–- WebStart will consider the Launcher as the app. to run  -–>
  <application-desc main-class="com.ibm.websphere.client.launcher.ClientLauncher">
    <argument>-CCproviderURL=corbaloc:iiop:your_server</argument>
    <argument>-CCDcom.ibm.ssl.keyStore=${WAS_ROOT}/etc/key.p12</argument>
    <argument>-CCDcom.ibm.ssl.trustStore=${WAS_ROOT}/etc/trust.p12</argument>
  </application-desc>
</jnlp>



 

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
Use Java Web Start

 

Related Reference


launchClient tool
ClientLauncher class

 

Reference topic