[jboss-cvs] JBossAS SVN: r110395 - branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/etc.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Jan 17 18:58:52 EST 2011


Author: pferraro
Date: 2011-01-17 18:58:52 -0500 (Mon, 17 Jan 2011)
New Revision: 110395

Modified:
   branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/etc/README.txt
   branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/etc/build.xml
   branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/etc/switch.sh
Log:
JBPAPP-5770 Prepare minimal configuration for HQ backup server in dedicated backup topology

Modified: branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/etc/README.txt
===================================================================
--- branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/etc/README.txt	2011-01-17 18:15:32 UTC (rev 110394)
+++ branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/etc/README.txt	2011-01-17 23:58:52 UTC (rev 110395)
@@ -2,6 +2,9 @@
 if on Windows) on a clean install. This will remove all JBoss Messaging 
 components and replace them with HornetQ.
 
+Call the switch.sh script with -Dbackup=true to create additional profiles for
+dedicated backup server usage.
+
 You can find the HornetQ documentation at http://jboss.org/hornetq/docs.html.
 
 There are some JMS and Java EE examples under the examples directory. To run

Modified: branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/etc/build.xml
===================================================================
--- branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/etc/build.xml	2011-01-17 18:15:32 UTC (rev 110394)
+++ branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/etc/build.xml	2011-01-17 23:58:52 UTC (rev 110395)
@@ -16,7 +16,8 @@
    <property name="jboss_home" value="../../"/>
    <property name="lib.dir" value="lib"/>
    <property name="resources.dir" value="resources"/>
-
+   <property name="backup.suffix" value="-backup"/>
+   
    <target name="install" depends="removeCommon, removeClient, addCommon, addClient">
 
       <antcall target="removeConfig">
@@ -124,5 +125,36 @@
       <copy todir="${jboss_home}/server/${config}/deploy/jms-ra.rar/" file="${lib.dir}/hornetq-ra.jar" overwrite="true"/>
       <copy todir="${jboss_home}/server/${config}/deploy/jms-ra.rar/META-INF" file="${resources.dir}/ra.xml" overwrite="true"/>
       <copy todir="${jboss_home}/server/${config}/deployers/jbossws.deployer" file="${lib.dir}/jbossws-hornetq.jar" overwrite="true"/>
+   	  <antcall target="createBackup"></antcall>
    </target>
+   
+   <target name="createBackup" if="backup">
+      <property name="backup.config" value="${config}${backup.suffix}"/>
+      <echo>Create HornetQ dedicated backup profile for ${config}</echo>
+      <mkdir dir="${jboss_home}/server/${backup.config}"/>
+      <copy todir="${jboss_home}/server/${backup.config}" includeemptydirs="true">
+         <fileset dir="${jboss_home}/server/${config}">
+            <include name="conf/**"/>
+            <include name="data"/>
+         	<include name="deploy/hornetq/**"/>
+            <include name="deploy/jms-ra.rar/**"/>
+            <include name="deploy/security/**"/>
+            <include name="deploy/hdscanner-jboss-beans.xml"/>
+            <include name="deploy/jca-jboss-beans.xml"/>
+            <include name="deploy/transaction-jboss-beans.xml"/>
+            <include name="deploy/vfs-jboss-beans.xml"/>
+            <include name="deployers/jboss-jca.deployer/**"/>
+            <include name="deployers/logbridge-jboss-beans.xml"/>
+            <include name="deployers/security-deployer-jboss-beans.xml"/>
+            <include name="lib"/>
+         </fileset>
+      </copy>
+   	  <replace file="${jboss_home}/server/${backup.config}/deploy/hornetq/hornetq-configuration.xml">
+   		<replacetoken><![CDATA[<name>HornetQ.main.config</name>]]></replacetoken>
+         <replacevalue><![CDATA[<name>HornetQ.main.config</name>
+         	
+   <backup>true</backup>
+   <allow-failback>true</allow-failback>]]></replacevalue>
+   	  </replace>
+   </target>
 </project>

Modified: branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/etc/switch.sh
===================================================================
--- branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/etc/switch.sh	2011-01-17 18:15:32 UTC (rev 110394)
+++ branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/etc/switch.sh	2011-01-17 23:58:52 UTC (rev 110395)
@@ -1 +1 @@
-ant
\ No newline at end of file
+ant $@



More information about the jboss-cvs-commits mailing list