users@glassfish.java.net

Re: configuring check-passthrough with sun webserver loadbalancer.xml

From: <glassfish_at_javadesktop.org>
Date: Wed, 27 Aug 2008 01:27:39 PDT

Hi,

You can use web-server <Client> directive to solve this problem to certain extent. Please modify obj.conf as follows :

From :
NameTrans fn="name-trans-passthrough" name="lbplugin" config-file="loadbalancer.xml"

To :
<Client uri="(*.jsp|*.do)">
NameTrans fn="name-trans-passthrough" name="lbplugin" config-file="loadbalancer.xml"
</Client>

This directive will force web-server to forward requests only for *.jsp and *.do files to application-server. All other requests will be served locally from doc-root.

For more details on this directive please refer to link : http://docs.sun.com/app/docs/doc/820-1643/abvau?l=en&a=view&q=%3CClient%3E+web+server

However this is active filtering of request, rather than trying to send requests to application-server if and only if web-server is not able to service the request.

Thanks,
Kshitiz
[Message sent by forum member 'kshitiz_saxena' (kshitiz_saxena)]

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