
Technical Notes |
|
This technical note describes how to configure Reflection for the Web to support Java Network Launch Protocol (JNLP), developed by Sun Microsystems, using Java Web Start. JNLP enables Java applications to run on client computers independently of web browsers. When used with Reflection for the Web, JNLP allows Reflection Java applets to start faster (due to applet and jar file caching). This functionality can be helpful for remote users accessing Reflection for the Web over a slow connection.
Note the following:
This technical note is organized into the following sections:
This section lists and describes the components that are required for Reflection for the Web JNLP support.
To configure JNLP support in Reflection for the Web, you must create a .JNLP file. This section includes the sample code you can use to create the file, Launcher.jnlp, as well as the instructions for editing the code for your environment.
<?xml version="1.0" encoding="UTF-8"?><jnlpspec="1.0+"<!-- The href and codebase attributes below must use absolute URL to the web application. Edit <your server>:<port number>/<application context> for your environment below.-->href="http://<your server>:<port number>/<application context>/Launcher.jnlp" codebase="http://<your server>:<port number>/<application context>/ex"><information><title>Reflection for the Web Launcher</title><vendor>Attachmate, Inc.</vendor><homepage href="http://www.attachmate.com"/><offline-allowed/></information><security><all-permissions/></security><resources><j2se version="1.4+"/><jar href="Launcher.jar"/></resources><applet-desc name="Launcher" main-class="com.wrq.rweb.Launcher" documentbase="." width="600" height="400"><param name="jsessionid" value="jnlp"/><!-- The servleturl value must be an absolute URL to the web application. Edit <your server>:<port number>/<application context> for your environment below.--><param name="servleturl" value="http://<your server>:<port number>/<application context>"/><param name="launcher.sessions" value="RMC"/><param name="launcher.keepalive" value="none"/><!-- Uncomment the two lines below if you want to launch an embedded Reflection for the Web session using only one JNLP window. Also, enter the session name in the <session name> placeholder below.--><!-- <param name="jnlp.sessiontype" value="rweb"/><param name="jnlp.params" value="link=<session name>&runinsameapp=true&portal=true"/>--></applet-desc></jnlp>Follow the steps below to edit the sample Launcher.jnlp code for your environment.
<Servlet Runner Home Directory>\webapps\rwebThe Windows default path is
\Program Files\ReflectionServer\Jakarta-tomcat\webapps\rwebFor example, if you have Reflection for the Web management server installed on a server computer named myserver, and you accepted the defaults during installation for HTTP port (80) and application context name (rweb), then the three URLs should begin as follows:
http://myserver/rweb/If you have Reflection for the Web management server installed on a server computer named myserver, using port 8080 for http and using an application context name of ATMrw, then the three URLs should begin as follows:
http://myserver:8080/ATMrw/ or http://localhost:8080/ATMrw/Note the following:
<param name="jsessionid" value="jnlp"/><param name="launcher.keepalive" value="none"/><param name="launcher.sessions" value="RMC"/>For details about configuration options, see Sun's web site at http://java.sun.com/products/javawebstart/docs/developersguide.html#jnlp.
Or, for more general information about JNLP, see http://java.sun.com/products/javawebstart/.
Once you configure the Launcher.jnlp file, following the instructions above, end users who have the Java Web Start client installed can access Reflection for the Web sessions using JNLP. A web browser is required for each user only during the initial download of Reflection; after that, no web browser is needed.
From the client workstation, follow the steps below to launch Reflection for the Web for the first time using JNLP.
http://myserver/rweb/Launcher.jnlpNote the following:
If instead you see a File Download dialog, you may need to change the Windows file extension association for JNLP by opening My Documents > Tools > Folder Options > File types. Select JNLP, click Change, select javaws, and then click OK. Then repeat steps 1 and 2 above.
After you have launched the Reflection for the Web Launcher once through your browser, you can subsequently start the Reflection for the Web Launcher from a shortcut on the desktop or Start menu, or from the Java Web Start window.
If you retained the <offline-allowed/> parameter in the Launcher.jnlp file, then users can follow the steps below to create and use a shortcut to start the Reflection for the Web Launcher applet without using the Java Web Start Application Manager.
Note the following:
You can now launch Reflection for the Web Launcher by clicking (or double-clicking) the shortcut. This shortcut can be located on the local PC, on a web page, in an e-mail message, or other locations.
To start Reflection from the Java Web Start Application Manager, follow these steps:
Note the following:
Note: If the Reflection for the Web Launcher does not appear in the Applications window, click View > Downloaded Applications.
To close the Reflection session, exit your host application and host connection as usual. Then close the Reflection for the Web window, the Launcher window, and the Java Web Start Application Manager.
If you would like to launch an embedded Reflection session within a JNLP window without any additional Java Web Start windows, uncomment the two lines below at the bottom of the Launcher.jnlp file and define an embedded session name.
<param name="jnlp.sessiontype" value="rweb"/><param name="jnlp.params" value="link=<session name>&runinsameapp=true&portal=true"/>Note: If the name of the terminal session ("<session name>" above) contains any spaces or special characters, right-click the session's link in the Links List and select "Copy URL to clipboard" to determine the correct link name. The link name is embedded in the URL listed in the Address field. It contains the HTML indicators that denote spaces or special characters. Paste the URL into a text editor and make a note of the link name, including the special characters.
For example, a link titled "Sales Data" is represented by red text in the following URL:
https://www.mycompany.com:843/rweb/rweb?link=Sales*u0020Data&rwebgroup=adminThe parameters for this link in the JNLP window become
<param name="jnlp.sessiontype" value="rweb"/><param name="jnlp.params" value="link=Sales*u0020Data&runinsameapp=true&portal=true"/>