admin@glassfish.java.net

Re: web-applications and availability enabled

From: Hong Zhang <Hong.Zhang_at_Sun.COM>
Date: Wed, 20 Feb 2008 13:08:46 -0500

Hi, Irfan
   I believe the deploy/enable/disable commands in v2 are only
applicable to the whole cluster and not to individual cluster instances.
The enable attribute of individual cluster instances should probably not
be exposed in that case, but as they are exposed, they should have
consistent values with the cluster. I assume you were using admin
console when you see the inconsistency of setting the enable attributes?
The admin console should have the same behavior as the admin cli in this
case.
   There is actually a similar issue here:
https://glassfish.dev.java.net/issues/show_bug.cgi?id=4096

   Thanks,

- Hong


Irfan Ahmed wrote:

> I mean enabled attribute and not availability-enabled. Sorry for the typo.
>
> Irfan Ahmed wrote:
>
>> Hi All,
>>
>> I have a query regarding the availability enabled field for a web
>> application in a cluster environment.
>>
>> Setup :
>>
>> Config : default-cluster-config
>> Cluster : default-cluster (config-> default-cluster-config)
>> Instance : instance-1 on default-cluster
>>
>> What is the relation between the application-ref enabled attribute in
>> an instance and the application-ref enabled in a cluster element. The
>> scenario is as follows :
>>
>> I deploy a web app in default-cluster with availability enabled as
>> true. This sets the enabled in application-ref under the instance and
>> the cluster as true for the application. When I select the web
>> application in the web-apps table and click Disable, this sets the
>> enabled attribute to false in application-ref under cluster
>> definition in domain.xml. The attribute enabled under instance is
>> true. Also the application does not serve any requests.
>>
>> However the same scenario does not work for a deployed SIP
>> application. When a deployed SIP application is disabled, the GUI
>> sets the enabled attribute for application-ref to false in the
>> clusters element. However the SIP application still serves requests.
>> It is only when the enabled is set to false under the instance then
>> only SIP application is disabled.
>>
>> However on the CLI, if one issues the command asadmin disable
>> --target default-cluster hello , both the attributes for the
>> application-ref under clusters as well as instance are set to false.
>>
>> For more details on the bug please refer the URL
>> https://sailfin.dev.java.net/issues/show_bug.cgi?id=429
>>
>> Rgds
>> Irfan
>>
>> --
>> Irfan Ahmed
>> 9180-66927726, Sun Microsystems Inc., Bangalore, India.
>
>
> --
> Irfan Ahmed
> 9180-66927726, Sun Microsystems Inc., Bangalore, India.