GlassFish v2.x Developer vs Cluster Profile

Developer vs Cluster domain.xml

In v2.1.1, do

  1. create-domain --profile developer
  2. create-domain --profile cluster

Cluster Differences in domain.xml

  1. File caching enabled globally on admin-listener
    <http-listener id="admin-listener" ...
           <http-file-cache file-caching-enabled="true" file-transmission-enabled="false" globally-enabled="true" ...
  2. jmx-connector has additional client-hostname property
    <jmx-connector accept-all="false" address="0.0.0.0" auth-realm-name="admin-realm" enabled="true" name="system" port="8686" protocol="rmi_jrmp" security-enabled="false">
        <ssl cert-nickname="s1as"/>
        <property name="client-hostname" value="moonbeam"/>
    </jmx-connector>
  3. Additional jvm property under server-config
    <jvm-options>-Dcom.sun.appserv.pluggable.features=com.sun.enterprise.ee.server.pluggable.EEPluggableFeatureImpl</jvm-options>
  4. <jvm-options>-Djavax.management.builder.initial=com.sun.enterprise.ee.admin.AppServerMBeanServerBuilder</jvm-options>
  5. Additonal default-config
  6. Additonal elements
    <clusters/>
    <node-agents/>
    <lb-configs/>
    <load-balancers/>
  7. <property name="administrative.domain.name" value="domain-cluster" />

Developer Differences in domain.xml

  1. File caching disabled, globally disabled on admin-listener
    <http-listener id="admin-listener"...
            <http-file-cache globally-enabled="false" file-caching-enabled="false"...
  2. <jvm-options>-Djavax.management.builder.initial=com.sun.enterprise.admin.server.core.jmx.AppServerMBeanServerBuilder</jvm-options>
  3. <property name="administrative.domain.name" value="domain-developer" />

Developer vs Cluster Templates

  • lib
    • install
      • templates
        • default-config.xml.pdf
        • default-domain.xml.template.pdf
        • cluster
          • domain.xml.xsl.0.pdf -> Adds ..\default-config.xml to domain>configs
          • domain.xml.xsl.1.pdf
          • [^domain.xml.xsl.1.aix]
          • domain.xml.xsl.default-config -> Similar to domain.xml.xsl.1, but specific to default-config
          • domain.xml.xsl.server-config -> Similar to domain.xml.xsl.1, but specific to server-config
          • profile.properties
        • developer
          • [^domain.xml.pdf] -> Looks pretty similar to default-domain.xml.template with additional attributes set (could be defaults)
          • domain.xml.xsl.pdf -> Similar to domain.xml.xsl.1
          • [^domain.xml.xsl.aix]
          • profile.properties

Diff between cluster domain.xml.xsl.1 and developer domain.xml.xsl

Cluster Differences in Template domain.xml.xsl.1

  1. Additional commented out property element
  2. http-file-cache attributes set to true
    <xsl:template match="http-file-cache">
        <xsl:copy>
          <xsl:copy-of select="@*"/>
          <xsl:attribute name="globally-enabled">true</xsl:attribute>
          <xsl:attribute name="file-caching-enabled">true</xsl:attribute>
        </xsl:copy> 
      </xsl:template>
  3. jmx-connector
    1. Additional attribute security-enabled=false
    2. Additional property client-hostname
      <xsl:template match="jmx-connector">
          <xsl:copy>
            <xsl:copy-of select="@*"/>
            <xsl:attribute name="security-enabled">false</xsl:attribute>
            <xsl:element name="ssl">
              <xsl:attribute name="cert-nickname">s1as</xsl:attribute>
            </xsl:element>
            <xsl:element name="property">
              <xsl:attribute name="name">client-hostname</xsl:attribute>
              <xsl:attribute name="value">%%%HOST_NAME%%%</xsl:attribute>
            </xsl:element>
          </xsl:copy>
        </xsl:template>
  4. Additonal java-config elements
  5. Enable availability-service
  6. Add cluster specific elements
    <xsl:template match="servers">
        <xsl:copy>
          <xsl:apply-templates select="node()|@*"/>
        </xsl:copy>
        <xsl:element name="clusters"/>
        <xsl:element name="node-agents"/>
        <xsl:element name="lb-configs"/>
        <xsl:element name="load-balancers"/>
      </xsl:template>

Developer Differences in Template domain.xml.xsl

  1. http-file-cache attributes set to false
    <xsl:template match="http-file-cache">
        <xsl:copy>
          <xsl:copy-of select="@*"/>
          <xsl:attribute name="globally-enabled">false</xsl:attribute>
          <xsl:attribute name="file-caching-enabled">false</xsl:attribute>
        </xsl:copy> 
      </xsl:template>


domain_cluster.xml.pdf (application/pdf)
domain_developer.xml.pdf (application/pdf)
default-config.xml.pdf (application/pdf)
domain.xml.xsl.0.pdf (application/pdf)
domain.xml.xsl.pdf (application/pdf)
domain.xml.xsl.1.pdf (application/pdf)
default-domain.xml.template.pdf (application/pdf)