users@glassfish.java.net

Re: GlassFish and Web Start codbase question.

From: <glassfish_at_javadesktop.org>
Date: Mon, 24 Sep 2007 07:25:09 PDT

Hi.

As this is a Java Web Start question more than a GlassFish one, you might check the java.sun.com forum dedicated to Java Web Start here:

http://forum.java.sun.com/forum.jspa?forumID=38&start=0

Searching for "relative codebase" there are several hits, including these:

http://forum.java.sun.com/thread.jspa?forumID=38&threadID=224517
http://forum.java.sun.com/thread.jspa?forumID=38&threadID=695872

The JNLP spec requires the codebase to be absolute. There are techniques using JSPs or servlets that allow you to use placeholders for part of the URL and the JSP or servlet replaces those placeholders at runtime using the active server's URL. So from your point of view as a developer you can write the codebase in the JNLP using a placeholder. But by the time the server responds to the HTTP request for the JNLP document, the URL must be absolute to comply with the spec.

- Tim
[Message sent by forum member 'tjquinn' (tjquinn)]

http://forums.java.net/jive/thread.jspa?messageID=236794