JNLP descriptor file for a Thin 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 Thin Application client application, then the launcher class uses the current JVM from the Application Clients run-time dependency and invokes the Thin Application client application main method.

 

Example

Here is an example of the JNLP descriptor file for a Thin 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 -–>
<!–- ==================================================================== -–>
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0+"
codebase="http://your_server:port_number/J2EEWebStartWeb/JavaClients/WebStartExample">
  <information>
    <title>Thin Basic Calculator Client Samples</title>
    <vendor>IBM</vendor>
    <description>Thin Basic Calculator Client Samples</description>
    <offline-allowed/>
  </information>

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

  <resources>
    <j2se version="WASClient6.1.0"
     href="/WebSphereClientRuntimeWeb/Runtime/WebSphereJre/AppClientRT.jspz"/>


    <extension name="WAS Thin EJB Client Library"
               href="/WebSphereClientRuntimeWeb/Runtime/WebSphereJars/AppClientLib.jnlp"/>

   <!–-  use the jar resource for JWS LaunchClient class here if using JWS LaunchClient
 wrapper launcher -–>
   <jar href="/WebSphereClientRuntimeWeb/Runtime/WebSphereJars/WebSphereClientLauncher.jar" main="true"/>

   <jar href="BasicCalculatorClientCommon.jar"/>
   <jar href="BasicCalculatorEJB.jar"/>
   <jar href="BasicCalculatorThinClient.jar"/>

   <property name="com.ibm.websphere.client.launcher.main"
value="com.ibm.websphere.samples.technologysamples.basiccalcthinclient.BasicCalculatorClientThinMain"/>
  <property name="java.naming.factory.initial"
            value="com.ibm.websphere.naming.WsnInitialContextFactory" />
  <property name="java.naming.provider.url"
            value="corbaloc:iiop:your_server:port_number"/>
  <property name="com.ibm.CORBA.ConfigURL"

value="http://your_server:port_number/J2EEWebStartWeb/JavaClients/sas.client.props"/>
  <property name="com.ibm.SSL.ConfigURL"

value="http://your_server:port_number/J2EEWebStartWeb/JavaClients/ssl.client.props"/>

  <!-- *** Logging Properties ***
       <property name="com.ibm.websphere.client.launcher.jws.trace" />
       <property name="java.util.logging.configureByServer" value="true" />
       <property name="traceSettingsFile" value="TraceSettings.properties" />
       <property name="com.ibm.CORBA.Debug" value="true" />
       <property name="com.ibm.CORBA.CommTrace" value="true" />
       <property name="java.util.logging.manager" value="com.ibm.ws.bootstrap.WsLogManager" />
       <property name="com.ibm.CORBA.RasManager" value="com.ibm.websphere.ras.WsOrbRasManager" />
  -->
  </resources>
    <application-desc>
      <argument>-CCDcom.ibm.ssl.keyStore=${WAS_ROOT}/etc/key.p12</argument>
      <argument>-CCDcom.ibm.ssl.trustStore=${WAS_ROOT}/etc/trust.p12</argument>
      <argument>add</argument>
      <argument>1</argument>
      <argument>2</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 Using Java Web Start Related reference
launchClient tool ClientLauncher class