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:24 +0800

Hi Sudhir ,

The loadbalancer.xml is in the attachment. And I never configure the
domain.xml....

2008/12/22 Sudhir Prabhu <Sudhir.Prabhu_at_sun.com>

> Jamy,
>
> Can you also explain how exactly are you trying the session failover? Also
> if you can attach the loadbalancer.xml and domain.xml it will help us take a
> look at the issue.
>
> Thanks
> Sudhir
>
>
> Judy Tang wrote:
>
>> Hi Wolfram,
>>
>> Thanks so much for giving 3 different ways to config the contextroot.
>> Let's double check
>> to see which of our doc provides all the ways to set contextroot.
>> [1] GlassFish v3 Prelude doc: http://docs.sun.com/app/docs/coll/1343.7
>> [2] GlassFish v2 doc: http://docs.sun.com/app/docs/coll/1343.5?l=en
>>
>> Hi Jamy, For your second question, "session fail-over, but I found
>> sometimes it works, and sometimes doesn't work",
>> when it does not work, what did you observed, any diagnose information
>> would be helpful.
>>
>> Thanks,
>> Judy
>> 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
>>
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: quality-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: quality-help_at_glassfish.dev.java.net
>
>