admin@glassfish.java.net

web-applications and availability enabled

From: Irfan Ahmed <irfan_at_sun.com>
Date: Wed, 20 Feb 2008 22:21:55 +0600

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.