quality@glassfish.java.net

Re: [Question]: I have 3 questions about http load balance of GlassFish V2

From: Jamy Wang <jamywang_at_gmail.com>
Date: Mon, 22 Dec 2008 20:27:55 +0800

Thank you Kshitiz!

2008/12/22 Kshitiz Saxena <Kshitiz.Saxena_at_sun.com>

> Hi Jamy,
>
> Suggestion from Wolfram will help you in enabling a default application in
> application server instance. However this configuration need to be
> propagated to web-server as well. You can similarly use "/" as context-root
> for web-module in load-balancer xml as well. However there is a drawback
> with this approach as alls request will be serviced by load-balancer plugin.
> This may not be desired for static content which can be easily serviced from
> web-server itself.
>
> Thanks,
> Kshitiz
>
>
> Wolfram Rittmeyer wrote:
>
>> Jamy Wang wrote:
>>
>>> HI Kshitiz ,
>>> Thank you so much! I had found the way to create a http listener and
>>> dispatch to the cluster in GlassFish. But I still have 2 questions:
>>> 1) I still don't know how to configure a web app as a root context, such
>>> as accessed by http://hostname <http://hostname/>, I guess somewhere in
>>> the configuration of web server. Could you tell me?
>>>
>>
>> There are different ways to achieve this. First you can specify a "/" as
>> context-root at deployment time:
>>
>> asadmin deploy --contextroot / --name whatEver /path/to/whatEver.war
>>
>>
>> Another approach (probably the better one) is to use sun-web.xml (in the
>> WEB-INF directory):
>>
>> <sun-web-app>
>> <context-root>/</context-root>
>> </sun-web-app>
>>
>> --
>> Wolfram Rittmeyer
>>
>> 2) I am going to test the session fail-over, but I found sometimes it
>>> works, and sometimes doesn't work. Why? Has something to do with heartbreak
>>> of the cluster? I'm not sure. Has anyone got that problem?
>>> Thanks again.
>>> Best Regards
>>> Jamy Wang
>>>
>>> 2008/12/19 Kshitiz Saxena <Kshitiz.Saxena_at_sun.com <mailto:
>>> Kshitiz.Saxena_at_sun.com>>
>>>
>>> Hi Jamy,
>>>
>>> Please see my comments inline.
>>>
>>> Thanks,
>>> Kshitiz
>>>
>>>
>>> Jamy Wang wrote:
>>>
>>> Hi everyone,
>>> I'm Jamy Wang in China. I just started learning how to use
>>> GlassFish recnetly. I got some questions while configuring SUN
>>> web server v7 and GlassFish v2 to work together.
>>> 1) I just can not find http listner port in "server.xml", only
>>> see https listen port 8989 and it works.But can not access by
>>> HTTP. Did I miss something? I just installed the web server
>>> normally...
>>>
>>>
>>> You are looking at admin server of web-server installation. Please
>>> create another instance using admin console to act as front-end for
>>> glassfish.
>>>
>>>
>>> 2) I saw a function in the console of GlassFish v2 " HTTP load
>>> balance" , I don't understand how it will be used, It seems I
>>> will never use it? It must be some meaningful things I missed.
>>>
>>>
>>> This is needed to configure loadbalancer xml. There are two ways of
>>> doing that
>>> 1. Export loadbalancer xml and copy it to web-server machine
>>> 2. Configure the web-server port etc such that changes to
>>> load-balancer xml is pushed to web-server directly.
>>>
>>> For both of above option, you need to create http load-balancer in
>>> glassfish.
>>>
>>> Please follows steps available @
>>> http://docs.sun.com/app/docs/doc/819-3679/gchvt?l=en&a=view
>>> <http://docs.sun.com/app/docs/doc/819-3679/gchvt?l=en&a=view> to
>>> correctly configure web-server.
>>>
>>>
>>> 3) How can I monitor the flow of each instance in the cluster?
>>>
>>>
>>> loadbalancer xml had attribute, namely require-monitor-data, if set
>>> to true it will print monitoring data. In general it should be set
>>> to false.
>>>
>>>
>>> Anyone's help or reply will be very appreciated.
>>> Thanks a lot.
>>> Best Regards
>>> Jamy Wang
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: quality-unsubscribe_at_glassfish.dev.java.net
>>> <mailto:quality-unsubscribe_at_glassfish.dev.java.net>
>>> For additional commands, e-mail: quality-help_at_glassfish.dev.java.net
>>> <mailto:quality-help_at_glassfish.dev.java.net>
>>>
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: quality-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: quality-help_at_glassfish.dev.java.net
>>
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: quality-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: quality-help_at_glassfish.dev.java.net
>
>