users@glassfish.java.net

[gf-users] Re: [3.1.2.2] Protecting from 404 during startup

From: Pawel Veselov <pawel.veselov_at_gmail.com>
Date: Wed, 4 Jun 2014 15:38:43 -0700

On Wed, Jun 4, 2014 at 2:53 PM, Oleksiy Stashok <oleksiy.stashok_at_oracle.com>
wrote:

> Hi Pawel,
>
> unfortunately it's not possible to do in general, but AFAIR it should work
> fine for AJP listener (not HTTP).
> So if you put Apache as a front-end and redirect requests to Glassfish via
> AJP protocol - it should not report 404 error during startup.
>

Unfortunately, we had serious performance issues with Apache HTTPD, and
ha-proxy doesn't speak AJP....
I'll just have to manually exclude the instance from ha-proxy then, until
it fully starts-up...

Thank you.


>
> Thanks.
>
> WBR,
> Alexey.
>
>
>
> On 04.06.14 13:27, Pawel Veselov wrote:
>
>> Hi.
>>
>> Is there a way to avoid the GF server open it's HTTP listener until all
>> of the applications have been started? Otherwise, the request bounce back
>> with 404, until the start-up phase finishes...
>>
>> Thank you,
>> Pawel.
>>
>>