[jboss-cvs] JBoss Messaging SVN: r7468 - in branches/Branch_1_4/docs/examples: distributed-queue/etc and 4 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Jun 25 12:37:51 EDT 2009
Author: gaohoward
Date: 2009-06-25 12:37:51 -0400 (Thu, 25 Jun 2009)
New Revision: 7468
Added:
branches/Branch_1_4/docs/examples/distributed-queue/etc/queue-destinations-service.xml
branches/Branch_1_4/docs/examples/distributed-topic/etc/topic-destinations-service.xml
branches/Branch_1_4/docs/examples/queue-failover/etc/queue-destinations-service.xml
Modified:
branches/Branch_1_4/docs/examples/distributed-queue/build.xml.AS5
branches/Branch_1_4/docs/examples/distributed-topic/build.xml.AS5
branches/Branch_1_4/docs/examples/queue-failover/build.xml.AS5
Log:
JBMESSAGING-1644
Modified: branches/Branch_1_4/docs/examples/distributed-queue/build.xml.AS5
===================================================================
--- branches/Branch_1_4/docs/examples/distributed-queue/build.xml.AS5 2009-06-25 15:08:43 UTC (rev 7467)
+++ branches/Branch_1_4/docs/examples/distributed-queue/build.xml.AS5 2009-06-25 16:37:51 UTC (rev 7468)
@@ -19,9 +19,9 @@
<isset property="ENV.JBOSS_HOME" />
</condition>
- <property name="jboss.home" value="${ENV.JBOSS_HOME}" />
<property name="messaging.client.jar.name" value="${jboss.home}/client/jboss-messaging-client.jar" />
<property name="jboss.configuration" value="messaging-node0" />
+ <property name="jboss.configuration1" value="messaging-node1" />
<property name="example.queue.name" value="testDistributedQueue" />
<property name="ej3-extension" value="jar"/>
@@ -72,7 +72,18 @@
</javac>
</target>
- <target name="run" depends="compile">
+ <target name="deploy">
+ <copy file="./etc/queue-destinations-service.xml" todir="${jboss.home}/server/${jboss.configuration}/deploy" />
+ <antcall target="sleep">
+ <param name="sleep.interval" value="3" />
+ </antcall>
+ <copy file="./etc/queue-destinations-service.xml" todir="${jboss.home}/server/${jboss.configuration1}/deploy" />
+ <antcall target="sleep">
+ <param name="sleep.interval" value="15" />
+ </antcall>
+ </target>
+
+ <target name="run" depends="compile, deploy">
<!--
DistributedQueueExample expects to find the name of the queue to connect to as value of
the 'example.queue.name' property, which *may* be defined by calling ant when this
@@ -84,12 +95,23 @@
<jvmarg line="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_shmem,server=y,suspend=y,address=example"/>
-->
</java>
+ <antcall target="undeploy" />
</target>
- <target name="clean">
+ <target name="undeploy">
+ <delete file="${jboss.home}/server/${jboss.configuration}/deploy/queue-destinations-service.xml" quiet="true" />
+ <delete file="${jboss.home}/server/${jboss.configuration1}/deploy/queue-destinations-service.xml" quiet="true" />
+ </target>
+
+ <target name="clean" depends="undeploy">
<delete dir="./output" quiet="true" />
<delete dir="../common/output" quiet="true" />
</target>
+
+ <target name="sleep">
+ <echo message="Sleeping for ${sleep.interval} seconds ..." />
+ <sleep seconds="${sleep.interval}" />
+ </target>
</project>
Added: branches/Branch_1_4/docs/examples/distributed-queue/etc/queue-destinations-service.xml
===================================================================
--- branches/Branch_1_4/docs/examples/distributed-queue/etc/queue-destinations-service.xml (rev 0)
+++ branches/Branch_1_4/docs/examples/distributed-queue/etc/queue-destinations-service.xml 2009-06-25 16:37:51 UTC (rev 7468)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ Messaging Example Destinations
+ -->
+
+<server>
+
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.messaging.destination:service=Queue,name=testDistributedQueue"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ <depends>jboss.messaging:service=PostOffice</depends>
+ <attribute name="Clustered">true</attribute>
+ </mbean>
+
+</server>
Modified: branches/Branch_1_4/docs/examples/distributed-topic/build.xml.AS5
===================================================================
--- branches/Branch_1_4/docs/examples/distributed-topic/build.xml.AS5 2009-06-25 15:08:43 UTC (rev 7467)
+++ branches/Branch_1_4/docs/examples/distributed-topic/build.xml.AS5 2009-06-25 16:37:51 UTC (rev 7468)
@@ -16,10 +16,10 @@
<condition property="jboss.home" value="${ENV.JBOSS_HOME}" else="../../../">
<isset property="ENV.JBOSS_HOME" />
</condition>
-
- <property name="jboss.home" value="${ENV.JBOSS_HOME}" />
+
<property name="messaging.client.jar.name" value="${jboss.home}/client/jboss-messaging-client.jar" />
- <property name="jboss.configuration0" value="messaging-node0" />
+ <property name="jboss.configuration" value="messaging-node0" />
+ <property name="jboss.configuration1" value="messaging-node1" />
<property name="example.topic.name" value="testDistributedTopic" />
<property name="ej3-extension" value="jar"/>
@@ -70,7 +70,18 @@
</javac>
</target>
- <target name="run" depends="compile">
+ <target name="deploy">
+ <copy file="./etc/topic-destinations-service.xml" todir="${jboss.home}/server/${jboss.configuration}/deploy" />
+ <antcall target="sleep">
+ <param name="sleep.interval" value="3" />
+ </antcall>
+ <copy file="./etc/topic-destinations-service.xml" todir="${jboss.home}/server/${jboss.configuration1}/deploy" />
+ <antcall target="sleep">
+ <param name="sleep.interval" value="15" />
+ </antcall>
+ </target>
+
+ <target name="run" depends="compile, deploy">
<!--
DistributedTopicExample expects to find the name of the topic to connect to as value of
the 'example.topic.name' property, which *may* be defined by calling ant when this
@@ -82,12 +93,23 @@
<jvmarg line="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_shmem,server=y,suspend=y,address=example"/>
-->
</java>
+ <antcall target="undeploy" />
</target>
- <target name="clean">
+ <target name="undeploy">
+ <delete file="${jboss.home}/server/${jboss.configuration}/deploy/topic-destinations-service.xml" quiet="true" />
+ <delete file="${jboss.home}/server/${jboss.configuration1}/deploy/topic-destinations-service.xml" quiet="true" />
+ </target>
+
+ <target name="clean" depends="undeploy">
<delete dir="./output" quiet="true" />
<delete dir="../common/output" quiet="true" />
</target>
+ <target name="sleep">
+ <echo message="Sleeping for ${sleep.interval} seconds ..." />
+ <sleep seconds="${sleep.interval}" />
+ </target>
+
</project>
Added: branches/Branch_1_4/docs/examples/distributed-topic/etc/topic-destinations-service.xml
===================================================================
--- branches/Branch_1_4/docs/examples/distributed-topic/etc/topic-destinations-service.xml (rev 0)
+++ branches/Branch_1_4/docs/examples/distributed-topic/etc/topic-destinations-service.xml 2009-06-25 16:37:51 UTC (rev 7468)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ Messaging Example Destinations
+ -->
+
+<server>
+
+ <mbean code="org.jboss.jms.server.destination.TopicService"
+ name="jboss.messaging.destination:service=Topic,name=testDistributedTopic"
+ xmbean-dd="xmdesc/Topic-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ <depends>jboss.messaging:service=PostOffice</depends>
+ <attribute name="Clustered">true</attribute>
+ </mbean>
+
+</server>
Modified: branches/Branch_1_4/docs/examples/queue-failover/build.xml.AS5
===================================================================
--- branches/Branch_1_4/docs/examples/queue-failover/build.xml.AS5 2009-06-25 15:08:43 UTC (rev 7467)
+++ branches/Branch_1_4/docs/examples/queue-failover/build.xml.AS5 2009-06-25 16:37:51 UTC (rev 7468)
@@ -18,6 +18,7 @@
</condition>
<property name="messaging.client.jar.name" value="${jboss.home}/client/jboss-messaging-client.jar" />
<property name="jboss.configuration" value="messaging-node0" />
+ <property name="jboss.configuration1" value="messaging-node1" />
<property name="example.queue.name" value="testDistributedQueue" />
<path id="common.compilation.classpath">
@@ -75,6 +76,14 @@
</target>
<target name="deploy" depends="jar">
+ <copy file="./etc/queue-destinations-service.xml" todir="${jboss.home}/server/${jboss.configuration}/deploy" />
+ <antcall target="sleep">
+ <param name="sleep.interval" value="3" />
+ </antcall>
+ <copy file="./etc/queue-destinations-service.xml" todir="${jboss.home}/server/${jboss.configuration1}/deploy" />
+ <antcall target="sleep">
+ <param name="sleep.interval" value="15" />
+ </antcall>
<copy file="./output/lib/application-server-killer.jar" todir="${jboss.home}/server/${jboss.configuration}/deploy" />
<antcall target="sleep">
<param name="sleep.interval" value="5" />
@@ -94,6 +103,8 @@
<target name="undeploy">
<delete file="${jboss.home}/server/${jboss.configuration}/deploy/application-server-killer.jar" quiet="true" />
+ <delete file="${jboss.home}/server/${jboss.configuration}/deploy/queue-destinations-service.xml" quiet="true" />
+ <delete file="${jboss.home}/server/${jboss.configuration1}/deploy/queue-destinations-service.xml" quiet="true" />
</target>
<target name="clean" depends="undeploy">
Added: branches/Branch_1_4/docs/examples/queue-failover/etc/queue-destinations-service.xml
===================================================================
--- branches/Branch_1_4/docs/examples/queue-failover/etc/queue-destinations-service.xml (rev 0)
+++ branches/Branch_1_4/docs/examples/queue-failover/etc/queue-destinations-service.xml 2009-06-25 16:37:51 UTC (rev 7468)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ Messaging Example Destinations
+ -->
+
+<server>
+
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.messaging.destination:service=Queue,name=testDistributedQueue"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ <depends>jboss.messaging:service=PostOffice</depends>
+ <attribute name="Clustered">true</attribute>
+ </mbean>
+
+</server>
More information about the jboss-cvs-commits
mailing list