Hi Christian,
Each ULC launcher (e.g. the ULC Applet) needs to be configured with an
URL where he finds the server-side ULC application. In your case it is
important that the host part of this application URL points to the
server-side proxy server.
A problem may arise if you don't hard code this application URL but
instead calculate it on the server-side, i.e. by a JSP / Servlet that
runs in your Servlet container. In that case the JSP / Servlet is
usually not aware of the server-side proxy and therefore calculates a
wrong application URL, i.e. the host part of this URL directly points to
the Servlet container and not to the server-side proxy. Please note that
all our samples calculate the URL with help of a JSP / Servlet (e.g. see
teammembers_applet.jsp in the TeamMembers sample). So in your case you
should not copy that part of the samples.
To summarize: Don't calculate the application URL on the server-side,
hard code the application URL instead.
If you are using an Applet on the client-side you can calculate the
application URL on the client side. For this you need to overwrite the
DefaultAppletLauncher.getParameter(String name) method. The
DefaultAppletLauncher invokes this method with an argument of
"url-string" to obtain the application URL. In the overwritten method
you now can calculate the application URL with help of the
DefaultAppletLauncher.getDocumentBase().
Please note that a similar approach is not possible with the
DefaultJnlpLauncher.
There are some more information in the following developer list postings:
- http://lists.canoo.com/mailman/private/ulc-developer/2006/004170.html
- http://lists.canoo.com/mailman/private/ulc-developer/2006/004173.html
Griessli Dany
Christian Kröner wrote:
Hello everybody,
i hope someone can answer the following question:
Is it possible to run a CanooULC application in the following proxy-environment
without problems? It should run with both WebStart and Applet.
applet/application
|
| secure communication over https/port 443
|
Proxy
|
| communication over http/port 80
|
web-server with servlet-container
If its possible: What to consider during configuration?
If not: Why not, and how the configuration should look like alternatively?
Thanks a lot
Christian Kröner
_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer