DevPortal

How do I Deploy Applications on Clusters Using topology.xml?


You can deploy an application on the cluster by specifying the following in the topology.xml file.

<auto-deploy-applications>
  <application>absolute path of the application</application>
</auto-deploy-applications>

The configuration.xml file looks as below:

<?xml version="1.0" encoding="UTF-8"?>
<topology>
 <configuration service-name="ResourceService">
  <default-connection-factory name="CloudscapeCF"/>
  <default-datasource name="demo"/>
  <datasource name="jms_cluster_ds" connection-factory="jms_cluster_cf" transaction-participation="false"
  transaction-isolation="" description="No Description">
   <pool-properties min-pool-size="5" max-pool-size="20" initial-pool-size="1" refresh-interval-seconds="" connection-request-timeout-seconds=""
   idle-timeout-seconds="" cache-size="20"/>
   <connection-initialization db-retrials="0" db-retry-interval-millis="0"/>
   <connection-validation sql="" class=""/>
   <connection-tracking enable="false"/>
  </datasource>
  <default-propertes min-pool-size="5" max-pool-size="20" initial-pool-size="1" refresh-interval-seconds="300" connection-request-timeout-seconds="10"
  idle-timeout-seconds="300" cache-size="50"/>
  <connection-factory name="jms_cluster_cf" description="No Description" classname="oracle.jdbc.driver.OracleDriver" classpath=""
  url="jdbc:oracle:thin:@db:1521:db" authorized-by="container">
   <login-parameters user="scott" password="tiger" mask-password="false"/>
   <properties>
    <property name="user" value=""/>
    <property name="password" value=""/>
   </properties>
  </connection-factory>
 </configuration>
 <configuration service-name="JMSService">
  <persistent-store>
   <persistence-enabled>true</persistence-enabled>
   <persistence-disabled-policy>throw-exception</persistence-disabled-policy>
   <persistence-type>db-store</persistence-type>
   <db-store>
    <data-source-name>jms_cluster_ds</data-source-name>
    <jms-table-name-prefix>pmt1_</jms-table-name-prefix>
   </db-store>
  </persistent-store>
  <auto-deploy-applications>
   <application>Insert here absolute path of the WAR/JAR/EAR to be deployed </application>
   <application>Insert here absolute path of another the WAR/JAR/EAR to be deployed </application>
  </auto-deploy-applications>
 </configuration>
</topology>


Related Topics:

© Pramati Technologies 2007 Runs on Pramati Server | Feedback | Legal