In Application Server 8, it was possible to change any field (in the Admin Console) or attribute (in the Command Line Interface (CLI)). In Enterprise Server, a field or attribute that is the primary key of an item cannot be changed. However, an item can be deleted and then recreated with a new primary key value. In most cases, the primary key is a name, ID, reference, or JNDI name. The following table lists the primary keys that cannot be changed.
In the domain.xml file, a field or attribute is called an attribute, and an item is called an element. For more information about domain.xml, see the Sun GlassFish Enterprise Server 2.1 Administration Reference.
|
Item |
Primary Key Field or Attribute |
|---|---|
|
admin-object-resource |
jndi-name |
|
alert-subscription |
name |
|
appclient-module |
name |
|
application-ref |
ref |
|
audit-module |
name |
|
auth-realm |
name |
|
cluster-ref |
ref |
|
cluster |
name |
|
config |
name |
|
connector-connection-pool |
name |
|
connector-module |
name |
|
connector-resource |
jndi-name |
|
custom-resource |
jndi-name |
|
ejb-module |
name |
|
external-jndi-resource |
jndi-name |
|
http-listener |
id |
|
iiop-listener |
id |
|
j2ee-application |
name |
|
jacc-provider |
name |
|
jdbc-connection-pool |
name |
|
jdbc-resource |
jndi-name |
|
jms-host |
name |
|
jmx-connector |
name |
|
lb-config |
name |
|
lifecycle-module |
name |
|
mail-resource |
jndi-name |
|
message-security-config |
auth-layer |
|
node-agent |
name |
|
profiler |
name |
|
element-property |
name |
|
provider-config |
provider-id |
|
resource-adapter-config |
resource-adapter-name |
|
resource-ref |
ref |
|
security-map |
name |
|
server |
name |
|
server-ref |
ref |
|
system-property |
name |
|
thread-pool |
thread-pool-id |
|
virtual-server |
id |
|
web-module |
name |
|
persistence-manager-factory-resource |
jndi-name |