An earlier post explained the default URL that the GlassFish project's Java Web Start feature app server recognizes for launching a particular app client. Today I'll describe how you can control what that URL will be.
Actually, what you can control is the path part of the URL. The host and port will just be those of the running app server. Yesterday I explained how to customize the splash screen which end-users see when they launch an app client using the Java Web Start feature – simply by setting some values in the sun-application-client.xml runtime deployment descriptor for the app client. That's how you set the URL path as well. This example shows setting the path (using the context-root element) and the vendor:
<?xml version="1.0" encoding="UTF-8"?>
<sun-application-client>
<java-web-start-access>
<context-root>/InventoryClient</context-root>
<vendor>Sun Microsystems, Inc.</vendor>
</java-web-start-access>
</sun-application-client>Once you deploy the app client with this runtime descriptor your end-users can use http://host:port/InventoryClient to launch it.
That's all you need to do!
