Hello,
I explain my issue :
I have written some Perl scripts to automate the process of resource provisioning on domamin (JDMC,JMS,JCA,Realm, JVM options ...) and cluster deployement with the CLI language to the appropriate cluster.
Glassfish has a nice functionaqlity of automatic reconfiguration. So if we have several instance that inherit from the same cluster configuration - the listener port conflicts are automatically managed.
That's nice but i don't know how to get the OVERRIDEN values from the CLI commands even with the nice list / get commands
Kedar gives a good explanation of these functionalities here :
http://blogs.sun.com/bloggerkedar/entry/dotted_names_of_glassfish_administration
The values are visible in the domain.xml as the DAS domain.xml is the repository all the deployed applications .
So my instances values are here :
[i]<servers>
<server config-ref="demo-iteration4-config" lb-weight="100" name="rabat-cluster-demo-instanceA" node-agent-ref="node-rabat">
<application-ref disable-timeout-in-minutes="30" enabled="true" lb-enabled="false" ref="MEjbApp"/>
<application-ref disable-timeout-in-minutes="30" enabled="true" lb-enabled="false" ref="__ejb_container_timer_app"/>
<application-ref disable-timeout-in-minutes="30" enabled="true" lb-enabled="false" ref="__JWSappclients"/>
<application-ref disable-timeout-in-minutes="30" enabled="true" lb-enabled="false" ref="WSTXServices"/>
<application-ref disable-timeout-in-minutes="30" enabled="true" lb-enabled="false" ref="JBIFramework"/>
<application-ref disable-timeout-in-minutes="30" enabled="true" lb-enabled="false" ref="GCOTAConnector"/>
<application-ref disable-timeout-in-minutes="30" enabled="true" lb-enabled="false" ref="CounterManager"/>
<application-ref disable-timeout-in-minutes="30" enabled="true" lb-enabled="false" ref="DeltaCache"/>
<application-ref disable-timeout-in-minutes="30" enabled="true" lb-enabled="false" ref="InvocationCounters"/>
<application-ref disable-timeout-in-minutes="30" enabled="true" lb-enabled="false" ref="ManagementCounters"/>
<application-ref disable-timeout-in-minutes="30" enabled="true" lb-enabled="false" ref="SwitchCounters"/>
<application-ref disable-timeout-in-minutes="30" enabled="true" lb-enabled="false" ref="RefreshCounters"/>
<application-ref disable-timeout-in-minutes="30" enabled="true" lb-enabled="false" ref="OTAInfraCounters"/>
<application-ref disable-timeout-in-minutes="30" enabled="true" lb-enabled="false" ref="swiftmq_rar"/>
<application-ref disable-timeout-in-minutes="30" enabled="true" lb-enabled="false" ref="mmserver-application-iteration4"/>
<application-ref disable-timeout-in-minutes="30" enabled="true" lb-enabled="false" ref="mmgui-iteration4"/>
<resource-ref enabled="true" ref="jdbc/__CallFlowPool"/>
<resource-ref enabled="true" ref="jms/Capabilities"/>
<resource-ref enabled="true" ref="jms/GCOTAConnectorQueue"/>
<resource-ref enabled="true" ref="jms/Imei"/>
<resource-ref enabled="true" ref="jms/PermanentErrorQueue"/>
<resource-ref enabled="true" ref="jms/Ping"/>
<resource-ref enabled="true" ref="jms/TemporaryErrorQueue"/>
<resource-ref enabled="true" ref="jms/ConnectionFactory"/>
<resource-ref enabled="true" ref="jms/GCOTAConnectorFactory"/>
<resource-ref enabled="true" ref="jms/OperatorConnectionFactory"/>
<resource-ref enabled="true" ref="jdbc/__default"/>
<resource-ref enabled="true" ref="jdbc/mmserver-ds"/>
<resource-ref enabled="true" ref="jdbc/timer-ds"/>
<system-property name="HTTP_LISTENER_PORT" value="11383"/>
<system-property name="HTTP_SSL_LISTENER_PORT" value="11344"/>
<system-property name="IIOP_SSL_LISTENER_PORT" value="11321"/>
<system-property name="JMS_PROVIDER_PORT" value="11377"/>
<system-property name="JMX_SYSTEM_CONNECTOR_PORT" value="11387"/>
<system-property name="IIOP_LISTENER_PORT" value="11371"/>
<system-property name="IIOP_SSL_MUTUALAUTH_PORT" value="11393"/>
<property name="test" value="OLIVE"/>
</server>
</servers>
[/i]
Any clue on this ??
I do prefer using CLI commands instead of parsing directly the doimain.xml file !
[Message sent by forum member 'omerlin' (omerlin)]
http://forums.java.net/jive/thread.jspa?messageID=284132