[jboss-cvs] JBoss Messaging SVN: r5431 - in branches/Branch_1_4: docs/examples/bridge and 13 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Nov 25 06:37:22 EST 2008


Author: gaohoward
Date: 2008-11-25 06:37:22 -0500 (Tue, 25 Nov 2008)
New Revision: 5431

Added:
   branches/Branch_1_4/docs/examples/bridge/build.xml.AS5
   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/ejb3mdb/build.xml.AS5
   branches/Branch_1_4/docs/examples/http/build.xml.AS5
   branches/Branch_1_4/docs/examples/mdb-failure/build.xml.AS5
   branches/Branch_1_4/docs/examples/mdb/build.xml.AS5
   branches/Branch_1_4/docs/examples/queue-failover/build.xml.AS5
   branches/Branch_1_4/docs/examples/queue/build.xml.AS5
   branches/Branch_1_4/docs/examples/secure-socket/build.xml.AS5
   branches/Branch_1_4/docs/examples/stateless-clustered/build.xml.AS5
   branches/Branch_1_4/docs/examples/stateless/build.xml.AS5
   branches/Branch_1_4/docs/examples/topic/build.xml.AS5
   branches/Branch_1_4/docs/examples/web-service/build.xml.AS5
Modified:
   branches/Branch_1_4/build-messaging-AS5.xml
   branches/Branch_1_4/build-messaging-EAP4.xml
Log:
Add JBOSS AS 5 example build.xml files, now they are separated from EAP4


Modified: branches/Branch_1_4/build-messaging-AS5.xml
===================================================================
--- branches/Branch_1_4/build-messaging-AS5.xml	2008-11-25 09:15:50 UTC (rev 5430)
+++ branches/Branch_1_4/build-messaging-AS5.xml	2008-11-25 11:37:22 UTC (rev 5431)
@@ -64,16 +64,21 @@
       </aopc>
    </target>
 
-
    <!-- Note: This target must be ran after the smoke test -->
    <target name="examples" depends="release-structure">
-
       <copy todir="${release.output}/examples">
          <fileset dir="./docs/examples" excludes="examples.properties">
             <exclude name="programmatic-deployment"/>
 	    <exclude name="stateless-clustered/**"/>
+	    <exclude name="**/*/build.xml*"/>
          </fileset>
       </copy>
+      <copy todir="${release.output}/examples">
+         <fileset dir="./docs/examples">
+	    <exclude name="stateless-clustered/**"/>
+         </fileset>
+	 <globmapper from="*build.xml.AS5" to="*build.xml"/>
+      </copy>
       <copy todir="${release.output}/examples/config">
          <fileset dir="${integration-dir}/etc/server/default/deploy">
             <include name="*-persistence-service.xml"/>

Modified: branches/Branch_1_4/build-messaging-EAP4.xml
===================================================================
--- branches/Branch_1_4/build-messaging-EAP4.xml	2008-11-25 09:15:50 UTC (rev 5430)
+++ branches/Branch_1_4/build-messaging-EAP4.xml	2008-11-25 11:37:22 UTC (rev 5431)
@@ -64,7 +64,8 @@
       <copy todir="${release.output}/examples">
          <fileset dir="./docs/examples" excludes="examples.properties">
             <exclude name="programmatic-deployment"/>
-         </fileset>
+ 	    <exclude name="**/*/build.xml.AS5"/>
+        </fileset>
       </copy>
       <copy todir="${release.output}/examples/config">
          <fileset dir="${integration-dir}/etc/server/default/deploy">

Added: branches/Branch_1_4/docs/examples/bridge/build.xml.AS5
===================================================================
--- branches/Branch_1_4/docs/examples/bridge/build.xml.AS5	                        (rev 0)
+++ branches/Branch_1_4/docs/examples/bridge/build.xml.AS5	2008-11-25 11:37:22 UTC (rev 5431)
@@ -0,0 +1,102 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+
+   To run the example, set JBOSS_HOME and run ant (with no parameters)
+
+   $Id: build.xml 2705 2007-05-17 21:34:07Z clebert.suconic at jboss.com $
+
+ -->
+
+<project name="BridgeExample" default="run">
+
+	<property environment="ENV" />
+
+	<!-- These properties may be overriden by calling ants when this example is used in a smoke test -->
+	<property file="../examples.properties" />
+	<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" />
+	<property name="example.source.queue" value="A" />
+	<property name="example.target.queue" value="B" />
+
+	<path id="common.compilation.classpath">
+		<fileset file="${jboss.home}/client/jboss-j2ee.jar" />
+		<fileset dir="${jboss.home}/client" includes="*.jar" />
+	</path>
+
+	<path id="example.compilation.classpath">
+		<path refid="common.compilation.classpath" />
+		<pathelement path="../common/output/classes" />
+	</path>
+
+	<path id="execution.classpath">
+		<pathelement path="./etc" />
+		<pathelement path="../common/output/classes" />
+		<pathelement path="./output/classes" />
+		<fileset dir="${jboss.home}/client" includes="*.jar" />
+	</path>
+
+	<target name="identify">
+		<echo message="###########################################################################" />
+		<echo message="#                       Running the BRIDGE example                         #" />
+		<echo message="###########################################################################" />
+		<echo message="The queue:      ${example.queue.name}" />
+		<echo message="The client jar: ${messaging.client.jar.path}/${messaging.client.jar.name}" />
+	</target>
+
+	<target name="sanity-check" depends="identify">
+		<available property="client.jar.present" file="${messaging.client.jar.name}" />
+		<fail message="Could not find client jar ${messaging.client.jar.name}" unless="client.jar.present" />
+	</target>
+
+	<target name="init" depends="sanity-check">
+		<mkdir dir="./output/classes" />
+		<mkdir dir="../common/output/classes" />
+	</target>
+
+	<target name="compile" depends="init">
+		<javac destdir="../common/output/classes" debug="on" debuglevel="lines,vars,source">
+			<src path="../common/src" />
+			<classpath refid="common.compilation.classpath" />
+		</javac>
+		<javac destdir="./output/classes" debug="on" debuglevel="lines,vars,source">
+			<src path="./src" />
+			<classpath refid="example.compilation.classpath" />
+		</javac>
+	</target>
+
+	<target name="deploy" depends="compile">
+		<copy file="./etc/test-bridge-service.xml" todir="${jboss.home}/server/${jboss.configuration}/deploy" />
+		<antcall target="sleep">
+			<param name="sleep.interval" value="5" />
+		</antcall>
+	</target>
+
+	<target name="undeploy">
+		<delete file="${jboss.home}/server/${jboss.configuration}/deploy/test-bridge-service.xml" quiet="true" />
+	</target>
+
+	<target name="run" depends="deploy">
+		<java classname="org.jboss.example.jms.bridge.BridgeExample" classpathref="execution.classpath" fork="yes" failonerror="true">
+			<sysproperty key="example.source.queue" value="${example.source.queue}" />
+			<sysproperty key="example.target.queue" value="${example.target.queue}" />
+			<!--
+         <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" 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/build.xml.AS5
===================================================================
--- branches/Branch_1_4/docs/examples/distributed-queue/build.xml.AS5	                        (rev 0)
+++ branches/Branch_1_4/docs/examples/distributed-queue/build.xml.AS5	2008-11-25 11:37:22 UTC (rev 5431)
@@ -0,0 +1,92 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+
+   To run the example, set JBOSS_HOME and run ant (with no parameters)
+
+   The example requires a two nodes messaging-node0 and messaging-node1 to be running
+
+   $Id: build.xml 974 2006-05-22 21:35:38 -0600 (Mon, 22 May 2006) ovidiu $
+
+ -->
+
+<project name="DistributedQueueExample" default="run">
+
+	<property environment="ENV" />
+
+	<!-- These properties may be overriden by calling ants when this example is used in a smoke test -->
+	<property file="../examples.properties" />
+	<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="example.queue.name" value="testDistributedQueue" />
+	
+	<property name="ej3-extension" value="jar"/>
+
+	<path id="common.compilation.classpath">
+		<fileset file="${jboss.home}/client/jboss-javaee.jar" />
+		<fileset file="${messaging.client.jar.name}" />
+	</path>
+
+	<path id="example.compilation.classpath">
+		<path refid="common.compilation.classpath" />
+		<pathelement path="../common/output/classes" />
+	</path>
+
+	<path id="execution.classpath">
+		<pathelement path="./etc" />
+		<pathelement path="../common/output/classes" />
+		<pathelement path="./output/classes" />
+		<fileset dir="${jboss.home}/client" includes="*.jar" />
+	</path>
+
+	<target name="identify">
+		<echo message="###########################################################################" />
+		<echo message="#                Running the DISTRIBUTED QUEUE example                    #" />
+		<echo message="###########################################################################" />
+		<echo message="The queue:      ${example.queue.name}" />
+		<echo message="The client jar: ${messaging.client.jar.name}" />
+	</target>
+
+	<target name="sanity-check" depends="identify">
+		<available property="client.jar.present" file="${messaging.client.jar.name}" />
+		<fail message="Could not find client jar ${messaging.client.jar.name}" unless="client.jar.present" />
+	</target>
+
+	<target name="init" depends="sanity-check">
+		<mkdir dir="./output/classes" />
+		<mkdir dir="../common/output/classes" />
+	</target>
+
+	<target name="compile" depends="init">
+		<javac destdir="../common/output/classes" debug="on" debuglevel="lines,vars,source">
+			<src path="../common/src" />
+			<classpath refid="common.compilation.classpath" />
+		</javac>
+		<javac destdir="./output/classes" debug="on" debuglevel="lines,vars,source">
+			<src path="./src" />
+			<classpath refid="example.compilation.classpath" />
+		</javac>
+	</target>
+
+	<target name="run" depends="compile">
+		<!--
+           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
+           example is used in a smoke test.
+      -->
+		<java classname="org.jboss.example.jms.distributedqueue.DistributedQueueExample" classpathref="execution.classpath" fork="yes" failonerror="true">
+			<sysproperty key="example.queue.name" value="${example.queue.name}" />
+			<!--
+         <jvmarg line="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_shmem,server=y,suspend=y,address=example"/>
+          -->
+		</java>
+	</target>
+
+	<target name="clean">
+		<delete dir="./output" quiet="true" />
+		<delete dir="../common/output" quiet="true" />
+	</target>
+
+</project>
+

Added: branches/Branch_1_4/docs/examples/distributed-topic/build.xml.AS5
===================================================================
--- branches/Branch_1_4/docs/examples/distributed-topic/build.xml.AS5	                        (rev 0)
+++ branches/Branch_1_4/docs/examples/distributed-topic/build.xml.AS5	2008-11-25 11:37:22 UTC (rev 5431)
@@ -0,0 +1,92 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+
+   To run the example, set JBOSS_HOME and run ant (with no parameters)
+
+   $Id: build.xml 5392 2008-11-20 00:41:52Z clebert.suconic at jboss.com $
+
+ -->
+
+<project name="DistributedTopicExample" default="run">
+
+	<property environment="ENV" />
+
+	<property file="../examples.properties" />
+
+	<!-- These properties may be overriden by calling ants when this example is used in a smoke test -->
+	<property file="../examples.properties" />
+	<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="example.topic.name" value="testDistributedTopic" />
+	
+	<property name="ej3-extension" value="jar"/>
+
+	<path id="common.compilation.classpath">
+		<fileset file="${jboss.home}/client/jboss-javaee.jar" />
+		<fileset file="${messaging.client.jar.name}" />
+	</path>
+
+	<path id="example.compilation.classpath">
+		<path refid="common.compilation.classpath" />
+		<pathelement path="../common/output/classes" />
+	</path>
+
+	<path id="execution.classpath">
+		<pathelement path="./etc" />
+		<pathelement path="../common/output/classes" />
+		<pathelement path="./output/classes" />
+		<fileset dir="${jboss.home}/client" includes="*.jar" />
+	</path>
+
+	<target name="identify">
+		<echo message="###########################################################################" />
+		<echo message="#                Running the DISTRIBUTED TOPIC example                    #" />
+		<echo message="###########################################################################" />
+		<echo message="The topic:      ${example.topic.name}" />
+		<echo message="The client jar: ${messaging.client.jar.name}" />
+	</target>
+
+	<target name="sanity-check" depends="identify">
+		<available property="client.jar.present" file="${messaging.client.jar.name}" />
+		<fail message="Could not find client jar ${messaging.client.jar.name}" unless="client.jar.present" />
+	</target>
+
+	<target name="init" depends="sanity-check">
+		<mkdir dir="./output/classes" />
+		<mkdir dir="../common/output/classes" />
+	</target>
+
+	<target name="compile" depends="init">
+		<javac destdir="../common/output/classes" debug="on" debuglevel="lines,vars,source">
+			<src path="../common/src" />
+			<classpath refid="common.compilation.classpath" />
+		</javac>
+		<javac destdir="./output/classes" debug="on" debuglevel="lines,vars,source">
+			<src path="./src" />
+			<classpath refid="example.compilation.classpath" />
+		</javac>
+	</target>
+
+	<target name="run" depends="compile">
+		<!--
+           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
+           example is used in a smoke test.
+      -->
+		<java classname="org.jboss.example.jms.distributedtopic.DistributedTopicExample" classpathref="execution.classpath" fork="yes" failonerror="true">
+			<sysproperty key="example.topic.name" value="${example.topic.name}" />
+			<!--
+         <jvmarg line="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_shmem,server=y,suspend=y,address=example"/>
+          -->
+		</java>
+	</target>
+
+	<target name="clean">
+		<delete dir="./output" quiet="true" />
+		<delete dir="../common/output" quiet="true" />
+	</target>
+
+</project>
+

Added: branches/Branch_1_4/docs/examples/ejb3mdb/build.xml.AS5
===================================================================
--- branches/Branch_1_4/docs/examples/ejb3mdb/build.xml.AS5	                        (rev 0)
+++ branches/Branch_1_4/docs/examples/ejb3mdb/build.xml.AS5	2008-11-25 11:37:22 UTC (rev 5431)
@@ -0,0 +1,116 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+
+   To run the example, set JBOSS_HOME and run ant (with no parameters)
+
+   $Id: build.xml 5392 2008-11-20 00:41:52Z clebert.suconic at jboss.com $
+
+ -->
+
+<project name="EJB3MDBExample" default="run">
+
+	<property environment="ENV" />
+
+	<!-- These properties may be overriden by calling ants when this example is used in a smoke test -->
+	<property file="../examples.properties" />
+	<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" />
+	<property name="example.queue.name" value="testQueue" />
+	
+	<property name="ej3-extension" value="jar"/>
+
+	<path id="common.compilation.classpath">
+		<fileset file="${jboss.home}/client/jboss-javaee.jar" />
+		<fileset file="${messaging.client.jar.name}" />
+	</path>
+
+	<path id="example.compilation.classpath">
+		<path refid="common.compilation.classpath" />
+		<pathelement path="../common/output/classes" />
+	</path>
+
+	<path id="execution.classpath">
+		<pathelement path="./etc" />
+		<pathelement path="../common/output/classes" />
+		<pathelement path="./output/classes" />
+		<fileset dir="${jboss.home}/client" includes="*.jar" />
+	</path>
+
+
+	<target name="identify">
+		<echo message="###########################################################################" />
+		<echo message="#                     Running the EJB3 MDB example                        #" />
+		<echo message="###########################################################################" />
+		<echo message="The queue:      ${example.queue.name}" />
+		<echo message="The client jar: ${messaging.client.jar.name}" />
+	</target>
+
+	<target name="init" >
+		<mkdir dir="./output/classes/META-INF" />
+		<mkdir dir="./output/lib/META-INF" />
+		<mkdir dir="../common/output/classes" />
+	</target>
+
+	<target name="compile" depends="init">
+		<javac destdir="../common/output/classes" debug="on" debuglevel="lines,vars,source">
+			<src path="../common/src" />
+			<classpath refid="common.compilation.classpath" />
+		</javac>
+		<javac destdir="./output/classes" debug="on" debuglevel="lines,vars,source">
+			<src path="./src" />
+			<classpath refid="example.compilation.classpath" />
+		</javac>
+	</target>
+
+	<target name="jar" depends="compile">
+		<copy todir="./output/classes/META-INF" filtering="true">
+			<fileset dir="./etc/META-INF" includes="*" />
+			<filterset>
+				<filter token="QUEUE_NAME" value="${example.queue.name}" />
+			</filterset>
+		</copy>
+		<jar destfile="./output/lib/mdb-example.${ej3-extension}" basedir="./output/classes" includes="META-INF/**,org/jboss/example/**/EJB3MDBExample.class" />
+	</target>
+
+	<target name="deploy" depends="jar">
+		<copy file="./output/lib/mdb-example.${ej3-extension}" todir="${jboss.home}/server/${jboss.configuration}/deploy" />
+		<antcall target="sleep">
+			<param name="sleep.interval" value="5" />
+		</antcall>
+	</target>
+
+	<target name="run" depends="deploy">
+		<antcall target="send" />
+		<antcall target="undeploy" />
+	</target>
+
+	<target name="send">
+		<!-- MDBExample 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 ants when this example
+            is used in a smoke test -->
+		<java classname="org.jboss.example.jms.ejb3mdb.Sender" classpathref="execution.classpath" fork="yes" failonerror="true">
+			<sysproperty key="example.queue.name" value="${example.queue.name}" />
+			<!--
+         <jvmarg line="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_shmem,server=y,suspend=y,address=example"/>
+          -->
+		</java>
+	</target>
+
+	<target name="undeploy">
+		<delete file="${jboss.home}/server/${jboss.configuration}/deploy/mdb-example.${ej3-extension}" 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/http/build.xml.AS5
===================================================================
--- branches/Branch_1_4/docs/examples/http/build.xml.AS5	                        (rev 0)
+++ branches/Branch_1_4/docs/examples/http/build.xml.AS5	2008-11-25 11:37:22 UTC (rev 5431)
@@ -0,0 +1,102 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+
+   To run the example, set JBOSS_HOME and run ant (with no parameters)
+
+   $Id: build.xml 5392 2008-11-20 00:41:52Z clebert.suconic at jboss.com $
+
+ -->
+
+<project name="HttpExample" default="run">
+
+	<property environment="ENV" />
+
+	<!-- These properties may be overriden by calling ants when this example is used in a smoke test -->
+	<property file="../examples.properties" />
+	<property name="remoting.path" value="../config" />
+	<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" />
+	<property name="example.queue.name" value="testQueue" />
+
+	<path id="common.compilation.classpath">
+		<fileset file="${jboss.home}/client/jboss-javaee.jar" />
+		<fileset file="${messaging.client.jar.name}" />
+	</path>
+
+	<path id="example.compilation.classpath">
+		<path refid="common.compilation.classpath" />
+		<pathelement path="../common/output/classes" />
+	</path>
+
+	<path id="execution.classpath">
+		<pathelement path="./etc" />
+		<pathelement path="../common/output/classes" />
+		<pathelement path="./output/classes" />
+		<fileset dir="${jboss.home}/client" includes="*.jar" />
+	</path>
+
+
+	<target name="identify">
+		<echo message="############################################################################" />
+		<echo message="#                         Running the HTTP example                         #" />
+		<echo message="############################################################################" />
+		<echo message="The queue:      ${example.queue.name}" />
+		<echo message="The client jar: ${messaging.client.jar.name}" />
+	</target>
+
+	<target name="init" >
+		<mkdir dir="./output/classes" />
+		<mkdir dir="../common/output/classes" />
+	</target>
+
+	<target name="compile" depends="init">
+		<javac destdir="../common/output/classes" debug="on" debuglevel="lines,vars,source">
+			<src path="../common/src" />
+			<classpath refid="common.compilation.classpath" />
+		</javac>
+		<javac destdir="./output/classes" debug="on" debuglevel="lines,vars,source">
+			<src path="./src" />
+			<classpath refid="example.compilation.classpath" />
+		</javac>
+	</target>
+
+	<target name="deploy">
+		<copy file="${remoting.path}/remoting-http-service.xml" todir="${jboss.home}/server/${jboss.configuration}/deploy" />
+		<copy file="./etc/messaging-http-service.xml" todir="${jboss.home}/server/${jboss.configuration}/deploy" />
+		<antcall target="sleep">
+			<param name="sleep.interval" value="10" />
+		</antcall>
+	</target>
+
+	<target name="run" depends="compile, deploy">
+		<!-- QueueExample 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 ants when this example
+            is used in a smoke test -->
+		<java classname="org.jboss.example.jms.http.HttpExample" classpathref="execution.classpath" fork="yes" failonerror="true">
+			<sysproperty key="example.queue.name" value="${example.queue.name}" />
+			<!--
+         <jvmarg line="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_shmem,server=y,suspend=y,address=example"/>
+         -->
+		</java>
+		<antcall target="undeploy" />
+	</target>
+
+	<target name="undeploy">
+		<delete file="${jboss.home}/server/${jboss.configuration}/deploy/messaging-http-service.xml" quiet="true" />
+		<delete file="${jboss.home}/server/${jboss.configuration}/deploy/remoting-http-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/mdb/build.xml.AS5
===================================================================
--- branches/Branch_1_4/docs/examples/mdb/build.xml.AS5	                        (rev 0)
+++ branches/Branch_1_4/docs/examples/mdb/build.xml.AS5	2008-11-25 11:37:22 UTC (rev 5431)
@@ -0,0 +1,128 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+
+   To run the example, set JBOSS_HOME and run ant (with no parameters)
+
+   $Id: build.xml 5392 2008-11-20 00:41:52Z clebert.suconic at jboss.com $
+
+ -->
+
+<project name="MDBExample" default="run">
+
+	<property environment="ENV" />
+
+	<!-- These properties may be overriden by calling ants when this example is used in a smoke test -->
+	<property file="../examples.properties" />
+	<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" />
+	<property name="example.queue.name" value="testQueue" />
+	
+	<property name="ej3-extension" value="jar"/>
+
+	<path id="common.compilation.classpath">
+		<fileset file="${jboss.home}/client/jboss-javaee.jar" />
+		<fileset file="${messaging.client.jar.name}" />
+	</path>
+
+	<path id="example.compilation.classpath">
+		<path refid="common.compilation.classpath" />
+		<pathelement path="../common/output/classes" />
+	</path>
+
+	<path id="execution.classpath">
+		<pathelement path="./etc" />
+		<pathelement path="../common/output/classes" />
+		<pathelement path="./output/classes" />
+		<fileset dir="${jboss.home}/client" includes="*.jar" />
+	</path>
+
+	<target name="identify">
+		<echo message="###########################################################################" />
+		<echo message="#                        Running the MDB example                          #" />
+		<echo message="###########################################################################" />
+		<echo message="The queue:      ${example.queue.name}" />
+		<echo message="The client jar: ${messaging.client.jar.name}" />
+	</target>
+
+	<target name="sanity-check" depends="identify">
+		<available property="client.jar.present" file="${messaging.client.jar.name}" />
+		<fail message="Could not find client jar ${messaging.client.jar.name}" unless="client.jar.present" />
+	</target>
+
+	<target name="init" depends="sanity-check">
+		<mkdir dir="./output/classes/META-INF" />
+		<mkdir dir="./output/lib/META-INF" />
+		<mkdir dir="../common/output/classes" />
+	</target>
+
+	<target name="compile" depends="init">
+		<javac destdir="../common/output/classes" debug="on" debuglevel="lines,vars,source">
+			<src path="../common/src" />
+			<classpath refid="common.compilation.classpath" />
+		</javac>
+		<javac destdir="./output/classes" debug="on" debuglevel="lines,vars,source">
+			<src path="./src" />
+			<classpath refid="example.compilation.classpath" />
+		</javac>
+	</target>
+
+	<target name="jar" depends="compile">
+		<copy todir="./output/classes/META-INF" filtering="true">
+			<fileset dir="./etc/META-INF" includes="*" />
+			<filterset>
+				<filter token="QUEUE_NAME" value="${example.queue.name}" />
+			</filterset>
+		</copy>
+		<jar destfile="./output/lib/mdb-example.jar" basedir="./output/classes" includes="META-INF/**,org/jboss/example/**/MDBExample.class">
+		</jar>
+	</target>
+
+	<target name="ear" depends="jar">
+		<jar destfile="./output/lib/mdb-example.ear">
+			<zipfileset dir="./output/lib" includes="mdb-example.jar" />
+			<zipfileset dir="./etc/EAR-META-INF" prefix="META-INF" />
+		</jar>
+	</target>
+
+	<target name="deploy" depends="ear">
+		<copy file="./output/lib/mdb-example.ear" todir="${jboss.home}/server/${jboss.configuration}/deploy" />
+		<antcall target="sleep">
+			<param name="sleep.interval" value="5" />
+		</antcall>
+	</target>
+
+	<target name="run" depends="deploy">
+		<antcall target="send" />
+		<antcall target="undeploy" />
+	</target>
+
+	<target name="send">
+		<!-- MDBExample 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 ants when this example
+            is used in a smoke test -->
+		<java classname="org.jboss.example.jms.mdb.Sender" classpathref="execution.classpath" fork="yes" failonerror="true">
+			<sysproperty key="example.queue.name" value="${example.queue.name}" />
+			<!--
+         <jvmarg line="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_shmem,server=y,suspend=y,address=example"/>
+          -->
+		</java>
+	</target>
+
+	<target name="undeploy">
+		<delete file="${jboss.home}/server/${jboss.configuration}/deploy/mdb-example.ear" 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/mdb-failure/build.xml.AS5
===================================================================
--- branches/Branch_1_4/docs/examples/mdb-failure/build.xml.AS5	                        (rev 0)
+++ branches/Branch_1_4/docs/examples/mdb-failure/build.xml.AS5	2008-11-25 11:37:22 UTC (rev 5431)
@@ -0,0 +1,129 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+
+   To run the example, set JBOSS_HOME and run ant (with no parameters)
+
+   $Id: build.xml 974 2006-05-23 03:35:38Z ovidiu $
+
+ -->
+
+<project name="MDBFailureExample" default="run">
+
+	<property environment="ENV" />
+
+	<property name="undeploy.quiet" value="false" />
+	<property name="undeploy.failonerror" value="true" />
+
+	<!-- These properties may be overriden by calling ants when this example is used in a smoke test -->
+	<property file="../examples.properties" />
+	<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" />
+	<property name="example.queue.name" value="testQueue" />
+	
+	<property name="ej3-extension" value="jar"/>
+
+	<path id="common.compilation.classpath">
+		<fileset file="${jboss.home}/client/jboss-javaee.jar" />
+		<fileset file="${messaging.client.jar.name}" />
+	</path>
+
+	<path id="example.compilation.classpath">
+		<path refid="common.compilation.classpath" />
+		<pathelement path="../common/output/classes" />
+	</path>
+
+	<path id="execution.classpath">
+		<pathelement path="./etc" />
+		<pathelement path="../common/output/classes" />
+		<pathelement path="./output/classes" />
+		<fileset dir="${jboss.home}/client" includes="*.jar" />
+	</path>
+
+	<target name="identify">
+		<echo message="###########################################################################" />
+		<echo message="#                    Running the MDB Failure example                      #" />
+		<echo message="###########################################################################" />
+		<echo message="The queue:      ${example.queue.name}" />
+		<echo message="The client jar: ${messaging.client.jar.name}" />
+	</target>
+
+	<target name="sanity-check" depends="identify">
+		<available property="client.jar.present" file="${messaging.client.jar.name}" />
+		<fail message="Could not find client jar ${messaging.client.jar.name}" unless="client.jar.present" />
+	</target>
+
+	<target name="init" depends="sanity-check">
+		<mkdir dir="./output/classes/META-INF" />
+		<mkdir dir="./output/lib/META-INF" />
+		<mkdir dir="../common/output/classes" />
+	</target>
+
+	<target name="compile" depends="init">
+		<javac destdir="../common/output/classes" debug="on" debuglevel="lines,vars,source">
+			<src path="../common/src" />
+			<classpath refid="common.compilation.classpath" />
+		</javac>
+		<javac destdir="./output/classes" debug="on" debuglevel="lines,vars,source">
+			<src path="./src" />
+			<classpath refid="example.compilation.classpath" />
+		</javac>
+	</target>
+
+	<target name="jar" depends="compile">
+		<copy todir="./output/classes/META-INF" filtering="true">
+			<fileset dir="./etc/META-INF" includes="*" />
+			<filterset>
+				<filter token="QUEUE_NAME" value="${example.queue.name}" />
+			</filterset>
+		</copy>
+		<jar destfile="./output/lib/mdb-failure-example.jar" basedir="./output/classes" includes="META-INF/**,org/jboss/example/**/MDBFailureExample.class" />
+	</target>
+
+	<target name="deploy" depends="jar">
+		<copy file="./output/lib/mdb-failure-example.jar" todir="${jboss.home}/server/${jboss.configuration}/deploy" />
+		<antcall target="sleep">
+			<param name="sleep.interval" value="5" />
+		</antcall>
+	</target>
+
+	<target name="run" depends="deploy">
+		<antcall target="send" />
+		<antcall target="sleep">
+			<param name="sleep.interval" value="10" />
+		</antcall>
+		<antcall target="undeploy">
+			<param name="undeploy.quiet" value="false" />
+			<param name="undeploy.failonerror" value="true" />
+		</antcall>
+	</target>
+
+	<target name="send">
+		<!-- MDBFailureExample 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 ants when this example
+            is used in a smoke test -->
+		<java classname="org.jboss.example.jms.mdbfailure.Sender" classpathref="execution.classpath" fork="yes" failonerror="true">
+			<sysproperty key="example.queue.name" value="${example.queue.name}" />
+			<!--
+         <jvmarg line="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_shmem,server=y,suspend=y,address=example"/>
+          -->
+		</java>
+	</target>
+
+	<target name="undeploy">
+		<delete file="${jboss.home}/server/${jboss.configuration}/deploy/mdb-failure-example.jar" quiet="${undeploy.quiet}" failonerror="${undeploy.failonerror}" />
+	</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/queue/build.xml.AS5
===================================================================
--- branches/Branch_1_4/docs/examples/queue/build.xml.AS5	                        (rev 0)
+++ branches/Branch_1_4/docs/examples/queue/build.xml.AS5	2008-11-25 11:37:22 UTC (rev 5431)
@@ -0,0 +1,86 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+
+   To run the example, set JBOSS_HOME and run ant (with no parameters)
+
+   $Id: build.xml 5392 2008-11-20 00:41:52Z clebert.suconic at jboss.com $
+
+ -->
+
+<project name="QueueExample" default="run">
+
+	<property environment="ENV" />
+
+	<!-- These properties may be overriden by calling ants when this example is used in a smoke test -->
+	<property file="../examples.properties" />
+	<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" />
+	<property name="example.queue.name" value="testQueue" />
+
+	<path id="common.compilation.classpath">
+		<fileset file="${jboss.home}/client/jboss-javaee.jar" />
+		<fileset file="${messaging.client.jar.name}" />
+	</path>
+
+	<path id="example.compilation.classpath">
+		<path refid="common.compilation.classpath" />
+		<pathelement path="../common/output/classes" />
+	</path>
+
+	<path id="execution.classpath">
+		<pathelement path="./etc" />
+		<pathelement path="../common/output/classes" />
+		<pathelement path="./output/classes" />
+		<fileset dir="${jboss.home}/client" includes="*.jar" />
+	</path>
+
+	<target name="identify">
+		<echo message="###########################################################################" />
+		<echo message="#                       Running the QUEUE example                         #" />
+		<echo message="###########################################################################" />
+		<echo message="The queue:      ${example.queue.name}" />
+		<echo message="The client jar: ${messaging.client.jar.name}" />
+	</target>
+
+	<target name="sanity-check" depends="identify">
+		<available property="client.jar.present" file="${messaging.client.jar.name}" />
+		<fail message="Could not find client jar ${messaging.client.jar.name}" unless="client.jar.present" />
+	</target>
+
+	<target name="init" depends="sanity-check">
+		<mkdir dir="./output/classes" />
+		<mkdir dir="../common/output/classes" />
+	</target>
+
+	<target name="compile" depends="init">
+		<javac destdir="../common/output/classes" debug="on" debuglevel="lines,vars,source">
+			<src path="../common/src" />
+			<classpath refid="common.compilation.classpath" />
+		</javac>
+		<javac destdir="./output/classes" debug="on" debuglevel="lines,vars,source">
+			<src path="./src" />
+			<classpath refid="example.compilation.classpath" />
+		</javac>
+	</target>
+
+	<target name="run" depends="compile">
+		<!-- QueueExample 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 ants when this example
+            is used in a smoke test -->
+		<java classname="org.jboss.example.jms.queue.QueueExample" classpathref="execution.classpath" fork="yes" failonerror="true">
+			<sysproperty key="example.queue.name" value="${example.queue.name}" />
+			<!--
+         <jvmarg line="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_shmem,server=y,suspend=y,address=example"/>
+         -->
+		</java>
+	</target>
+
+	<target name="clean">
+		<delete dir="./output" quiet="true" />
+		<delete dir="../common/output" quiet="true" />
+	</target>
+
+</project>
+

Added: branches/Branch_1_4/docs/examples/queue-failover/build.xml.AS5
===================================================================
--- branches/Branch_1_4/docs/examples/queue-failover/build.xml.AS5	                        (rev 0)
+++ branches/Branch_1_4/docs/examples/queue-failover/build.xml.AS5	2008-11-25 11:37:22 UTC (rev 5431)
@@ -0,0 +1,109 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+
+   To run the example, set JBOSS_HOME and run ant (with no parameters)
+
+   $Id: build.xml 974 2006-05-22 21:35:38 -0600 (Mon, 22 May 2006) ovidiu $
+
+ -->
+
+<project name="QueueFailoverExample" default="run">
+
+	<property environment="ENV" />
+
+	<!-- These properties may be overriden by calling ants when this example is used in a smoke test -->
+	<property file="../examples.properties" />
+	<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="example.queue.name" value="testDistributedQueue" />
+
+	<path id="common.compilation.classpath">
+		<fileset file="${jboss.home}/client/jboss-javaee.jar" />
+		<fileset file="${messaging.client.jar.name}" />
+	</path>
+
+	<path id="example.compilation.classpath">
+		<path refid="common.compilation.classpath" />
+		<pathelement path="../common/output/classes" />
+	</path>
+
+	<path id="execution.classpath">
+		<pathelement path="./etc" />
+		<pathelement path="../common/output/classes" />
+		<pathelement path="./output/classes" />
+		<fileset dir="${jboss.home}/client" includes="*.jar" />
+	</path>
+
+	<target name="identify">
+		<echo message="###########################################################################" />
+		<echo message="#                Running the QUEUE FAILOVER example                       #" />
+		<echo message="###########################################################################" />
+		<echo message="The queue:      ${example.queue.name}" />
+		<echo message="The client jar: ${messaging.client.jar.name}" />
+	</target>
+
+	<target name="sanity-check" depends="identify">
+		<available property="client.jar.present" file="${messaging.client.jar.name}" />
+		<fail message="Could not find client jar ${messaging.client.jar.name}" unless="client.jar.present" />
+	</target>
+
+	<target name="init" depends="sanity-check">
+		<mkdir dir="./output/lib" />
+		<mkdir dir="./output/classes" />
+		<mkdir dir="../common/output/classes" />
+	</target>
+
+	<target name="compile" depends="init">
+		<javac destdir="../common/output/classes" debug="on" debuglevel="lines,vars,source">
+			<src path="../common/src" />
+			<classpath refid="common.compilation.classpath" />
+		</javac>
+		<javac destdir="./output/classes" debug="on" debuglevel="lines,vars,source">
+			<src path="./src" />
+			<classpath refid="example.compilation.classpath" />
+		</javac>
+	</target>
+
+	<target name="jar" depends="compile">
+		<jar destfile="./output/lib/application-server-killer.jar">
+			<fileset dir="../common/etc" includes="META-INF/**" />
+			<fileset dir="../common/output/classes" includes="org/jboss/example/jms/common/bean/*.class" />
+		</jar>
+	</target>
+
+	<target name="deploy" depends="jar">
+		<copy file="./output/lib/application-server-killer.jar" todir="${jboss.home}/server/${jboss.configuration}/deploy" />
+		<antcall target="sleep">
+			<param name="sleep.interval" value="5" />
+		</antcall>
+	</target>
+
+
+	<target name="run" depends="deploy">
+		<java classname="org.jboss.example.jms.failover.QueueFailoverExample" classpathref="execution.classpath" fork="yes" failonerror="true">
+			<sysproperty key="example.queue.name" value="${example.queue.name}" />
+			<!--
+         <jvmarg line="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_shmem,server=y,suspend=y,address=example"/>
+          -->
+		</java>
+		<antcall target="undeploy" />
+	</target>
+
+	<target name="undeploy">
+		<delete file="${jboss.home}/server/${jboss.configuration}/deploy/application-server-killer.jar" 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/secure-socket/build.xml.AS5
===================================================================
--- branches/Branch_1_4/docs/examples/secure-socket/build.xml.AS5	                        (rev 0)
+++ branches/Branch_1_4/docs/examples/secure-socket/build.xml.AS5	2008-11-25 11:37:22 UTC (rev 5431)
@@ -0,0 +1,107 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+
+   To run the example, set JBOSS_HOME and run ant (with no parameters)
+
+   $Id: build.xml 5419 2008-11-24 05:21:45Z gaohoward $
+
+ -->
+
+<project name="SecureSocketExample" default="run">
+
+	<property environment="ENV" />
+
+	<!-- These properties may be overriden by calling ants when this example is used in a smoke test -->
+	<property file="../examples.properties" />
+	<property name="remoting.path" value="../config" />
+	<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" />
+	<property name="example.queue.name" value="testQueue" />
+	
+	<property name="messaging-deploy" value="messaging"/>
+
+	<path id="common.compilation.classpath">
+		<fileset file="${jboss.home}/client/jboss-javaee.jar" />
+		<fileset file="${messaging.client.jar.name}" />
+	</path>
+
+	<path id="example.compilation.classpath">
+		<path refid="common.compilation.classpath" />
+		<pathelement path="../common/output/classes" />
+	</path>
+
+	<path id="execution.classpath">
+		<pathelement path="./etc" />
+		<pathelement path="../common/output/classes" />
+		<pathelement path="./output/classes" />
+		<fileset dir="${jboss.home}/client" includes="*.jar" />
+	</path>
+
+	<target name="identify">
+		<echo message="############################################################################" />
+		<echo message="#                   Running the SECURE SOCKET example                      #" />
+		<echo message="############################################################################" />
+		<echo message="The queue:      ${example.queue.name}" />
+		<echo message="The client jar: ${messaging.client.jar.name}" />
+	</target>
+
+	<target name="init">
+		<mkdir dir="./output/classes" />
+		<mkdir dir="../common/output/classes" />
+	</target>
+
+	<target name="compile" depends="init">
+		<javac destdir="../common/output/classes" debug="on" debuglevel="lines,vars,source">
+			<src path="../common/src" />
+			<classpath refid="common.compilation.classpath" />
+		</javac>
+		<javac destdir="./output/classes" debug="on" debuglevel="lines,vars,source">
+			<src path="./src" />
+			<classpath refid="example.compilation.classpath" />
+		</javac>
+	</target>
+
+	<target name="deploy">
+		<copy file="./etc/messaging.keystore" todir="${jboss.home}/server/${jboss.configuration}/deploy/${messaging-deploy}" />
+		<copy file="${remoting.path}/remoting-sslbisocket-service.xml" todir="${jboss.home}/server/${jboss.configuration}/deploy" />
+		<copy file="./etc/messaging-secure-socket-service.xml" todir="${jboss.home}/server/${jboss.configuration}/deploy" />
+		<antcall target="sleep">
+			<param name="sleep.interval" value="5" />
+		</antcall>
+	</target>
+
+	<target name="run" depends="compile, deploy">
+		<!-- QueueExample 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 ants when this example
+            is used in a smoke test -->
+		<java classname="org.jboss.example.jms.securesocket.SecureSocketExample" classpathref="execution.classpath" fork="yes" failonerror="true">
+			<sysproperty key="javax.net.ssl.trustStorePassword" value="secureexample" />
+			<sysproperty key="javax.net.ssl.trustStore" value="./etc/messaging.truststore" />
+			<sysproperty key="example.queue.name" value="${example.queue.name}" />
+			<!--
+         <jvmarg line="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_shmem,server=y,suspend=y,address=example"/>
+         -->
+		</java>
+		<antcall target="undeploy" />
+	</target>
+
+	<target name="undeploy">
+		<delete file="${jboss.home}/server/${jboss.configuration}/deploy/remoting-sslbisocket-service.xml" quiet="true" />
+		<delete file="${jboss.home}/server/${jboss.configuration}/deploy/messaging-secure-socket-service.xml" quiet="true" />
+		<delete file="${jboss.home}/server/${jboss.configuration}/deploy/${messaging-deploy}/messaging.keystore" 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/stateless/build.xml.AS5
===================================================================
--- branches/Branch_1_4/docs/examples/stateless/build.xml.AS5	                        (rev 0)
+++ branches/Branch_1_4/docs/examples/stateless/build.xml.AS5	2008-11-25 11:37:22 UTC (rev 5431)
@@ -0,0 +1,115 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+
+   To run the example, set JBOSS_HOME and run ant (with no parameters)
+
+   $Id: build.xml 5408 2008-11-21 04:43:36Z clebert.suconic at jboss.com $
+
+ -->
+
+<project name="StatelessExample" default="run">
+
+	<property environment="ENV" />
+
+	<!-- These properties may be overriden by calling ants when this example is used in a smoke test -->
+	<property file="../examples.properties" />
+	<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" />
+	<property name="example.queue.name" value="testQueue" />
+
+	<path id="common.compilation.classpath">
+		<fileset file="${jboss.home}/client/jboss-javaee.jar" />
+		<fileset file="${messaging.client.jar.name}" />
+	</path>
+
+	<path id="example.compilation.classpath">
+		<path refid="common.compilation.classpath" />
+		<pathelement path="../common/output/classes" />
+	</path>
+
+	<path id="execution.classpath">
+		<pathelement path="./etc" />
+		<pathelement path="../common/output/classes" />
+		<pathelement path="./output/classes" />
+		<fileset dir="${jboss.home}/client" includes="*.jar" />
+	</path>
+
+	<target name="identify">
+		<echo message="###########################################################################" />
+		<echo message="#              Running the STATELESS SESSION BEAN example                 #" />
+		<echo message="###########################################################################" />
+		<echo message="The queue:      ${example.queue.name}" />
+		<echo message="The client jar: ${messaging.client.jar.name}" />
+	</target>
+
+	<target name="sanity-check" depends="identify">
+		<available property="client.jar.present" file="${messaging.client.jar.name}" />
+		<fail message="Could not find client jar ${messaging.client.jar.name}" unless="client.jar.present" />
+	</target>
+
+	<target name="init" depends="sanity-check">
+		<mkdir dir="./output/classes/META-INF" />
+		<mkdir dir="./output/lib" />
+		<mkdir dir="../common/output/classes" />
+	</target>
+
+	<target name="compile" depends="init">
+		<javac destdir="../common/output/classes" debug="on" debuglevel="lines,vars,source">
+			<src path="../common/src" />
+			<classpath refid="common.compilation.classpath" />
+		</javac>
+		<javac destdir="./output/classes" debug="on" debuglevel="lines,vars,source">
+			<src path="./src" />
+			<classpath refid="example.compilation.classpath" />
+		</javac>
+	</target>
+
+	<target name="jar" depends="compile">
+		<copy todir="./output/classes/META-INF">
+			<fileset dir="./etc/META-INF" includes="*" />
+		</copy>
+		<jar destfile="./output/lib/stateless-example.jar" basedir="./output/classes" includes="META-INF/**,org/jboss/example/jms/stateless/bean/*.class" />
+	</target>
+
+	<target name="deploy" depends="jar">
+		<copy file="./output/lib/stateless-example.jar" todir="${jboss.home}/server/${jboss.configuration}/deploy" />
+		<antcall target="sleep">
+			<param name="sleep.interval" value="5" />
+		</antcall>
+	</target>
+
+	<target name="run" depends="deploy">
+		<antcall target="send-and-receive" />
+		<antcall target="undeploy" />
+	</target>
+
+	<target name="send-and-receive">
+		<!-- The client 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 ants when this example
+            is used in a smoke test -->
+		<java classname="org.jboss.example.jms.stateless.client.Client" classpathref="execution.classpath" fork="yes" failonerror="true">
+			<sysproperty key="example.queue.name" value="${example.queue.name}" />
+			<!--
+         <jvmarg line="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_shmem,server=y,suspend=y,address=example"/>
+          -->
+		</java>
+	</target>
+
+	<target name="undeploy">
+		<delete file="${jboss.home}/server/${jboss.configuration}/deploy/stateless-example.jar" 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/stateless-clustered/build.xml.AS5
===================================================================
--- branches/Branch_1_4/docs/examples/stateless-clustered/build.xml.AS5	                        (rev 0)
+++ branches/Branch_1_4/docs/examples/stateless-clustered/build.xml.AS5	2008-11-25 11:37:22 UTC (rev 5431)
@@ -0,0 +1,117 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+
+   To run the example, set JBOSS_HOME and run ant (with no parameters)
+
+   $Id: build.xml 5408 2008-11-21 04:43:36Z clebert.suconic at jboss.com $
+
+ -->
+
+<project name="StatelessClusteredExample" default="run">
+
+	<property environment="ENV" />
+
+	<!-- These properties may be overriden by calling ants when this example is used in a smoke test -->
+	<property file="../examples.properties" />
+	<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="example.queue.name" value="testFarmQueue" />
+
+	<path id="common.compilation.classpath">
+		<fileset file="${jboss.home}/client/jboss-javaee.jar" />
+		<fileset file="${messaging.client.jar.name}" />
+	</path>
+
+	<path id="example.compilation.classpath">
+		<path refid="common.compilation.classpath" />
+		<pathelement path="../common/output/classes" />
+	</path>
+
+	<path id="execution.classpath">
+		<pathelement path="./etc" />
+		<pathelement path="../common/output/classes" />
+		<pathelement path="./output/classes" />
+		<fileset dir="${jboss.home}/client" includes="*.jar" />
+	</path>
+
+	<target name="identify">
+		<echo message="###########################################################################" />
+		<echo message="#         Running the STATELESS CLUSTERED SESSION BEAN example            #" />
+		<echo message="###########################################################################" />
+		<echo message="The queue:      ${example.queue.name}" />
+		<echo message="The client jar: ${messaging.client.jar.name}" />
+	</target>
+
+	<target name="sanity-check" depends="identify">
+		<available property="client.jar.present" file="${messaging.client.jar.path}/${messaging.client.jar.name}" />
+		<fail message="Could not find client jar ${messaging.client.jar.name}" unless="client.jar.present" />
+	</target>
+
+	<target name="init" depends="sanity-check">
+		<mkdir dir="./output/classes/META-INF" />
+		<mkdir dir="./output/lib" />
+		<mkdir dir="../common/output/classes" />
+	</target>
+
+	<target name="compile" depends="init">
+		<javac destdir="../common/output/classes" debug="on" debuglevel="lines,vars,source">
+			<src path="../common/src" />
+			<classpath refid="common.compilation.classpath" />
+		</javac>
+		<javac destdir="./output/classes" debug="on" debuglevel="lines,vars,source">
+			<src path="./src" />
+			<classpath refid="example.compilation.classpath" />
+		</javac>
+	</target>
+
+	<target name="jar" depends="compile">
+		<copy todir="./output/classes/META-INF">
+			<fileset dir="./etc/META-INF" includes="*" />
+		</copy>
+		<jar destfile="./output/lib/stateless-clustered-example.jar" basedir="./output/classes" includes="META-INF/**,org/jboss/example/jms/statelessclustered/bean/*.class" />
+	</target>
+
+	<target name="deploy" depends="jar">
+		<copy file="./etc/destinations-farm-service.xml" todir="${jboss.home}/server/${jboss.configuration}/farm" />
+		<copy file="./output/lib/stateless-clustered-example.jar" todir="${jboss.home}/server/${jboss.configuration}/farm" />
+		<antcall target="sleep">
+			<param name="sleep.interval" value="15" />
+		</antcall>
+	</target>
+
+	<target name="run" depends="deploy">
+		<antcall target="send-and-receive" />
+		<antcall target="undeploy" />
+	</target>
+
+	<target name="send-and-receive">
+		<!-- The client 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 ants when this example
+            is used in a smoke test -->
+		<java classname="org.jboss.example.jms.statelessclustered.client.Client" classpathref="execution.classpath" fork="yes" failonerror="true">
+			<sysproperty key="example.queue.name" value="${example.queue.name}" />
+			<!--
+         <jvmarg line="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_shmem,server=y,suspend=y,address=example"/>
+          -->
+		</java>
+	</target>
+
+	<target name="undeploy">
+		<delete file="${jboss.home}/server/${jboss.configuration}/farm/stateless-clustered-example.jar" quiet="true" />
+		<delete file="${jboss.home}/server/${jboss.configuration}/farm/destinations-farm-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/topic/build.xml.AS5
===================================================================
--- branches/Branch_1_4/docs/examples/topic/build.xml.AS5	                        (rev 0)
+++ branches/Branch_1_4/docs/examples/topic/build.xml.AS5	2008-11-25 11:37:22 UTC (rev 5431)
@@ -0,0 +1,86 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+
+   To run the example, set JBOSS_HOME and run ant (with no parameters)
+
+   $Id: build.xml 5408 2008-11-21 04:43:36Z clebert.suconic at jboss.com $
+
+ -->
+
+<project name="TopicExample" default="run">
+
+	<property environment="ENV" />
+
+	<!-- These properties may be overriden by calling ants when this example is used in a smoke test -->
+	<property file="../examples.properties" />
+	<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" />
+	<property name="example.topic.name" value="testTopic" />
+
+	<path id="common.compilation.classpath">
+		<fileset file="${jboss.home}/client/jboss-javaee.jar" />
+		<fileset file="${messaging.client.jar.name}" />
+	</path>
+
+	<path id="example.compilation.classpath">
+		<path refid="common.compilation.classpath" />
+		<pathelement path="../common/output/classes" />
+	</path>
+
+	<path id="execution.classpath">
+		<pathelement path="./etc" />
+		<pathelement path="../common/output/classes" />
+		<pathelement path="./output/classes" />
+		<fileset dir="${jboss.home}/client" includes="*.jar" />
+	</path>
+
+	<target name="identify">
+		<echo message="###########################################################################" />
+		<echo message="#                       Running the TOPIC example                         #" />
+		<echo message="###########################################################################" />
+		<echo message="The topic:      ${example.topic.name}" />
+		<echo message="The client jar: ${messaging.client.jar.name}" />
+	</target>
+
+	<target name="sanity-check" depends="identify">
+		<available property="client.jar.present" file="${messaging.client.jar.name}" />
+		<fail message="Could not find client jar ${messaging.client.jar.name}" unless="client.jar.present" />
+	</target>
+
+	<target name="init" depends="sanity-check">
+		<mkdir dir="./output/classes" />
+		<mkdir dir="../common/output/classes" />
+	</target>
+
+	<target name="compile" depends="init">
+		<javac destdir="../common/output/classes" debug="on" debuglevel="lines,vars,source">
+			<src path="../common/src" />
+			<classpath refid="common.compilation.classpath" />
+		</javac>
+		<javac destdir="./output/classes" debug="on" debuglevel="lines,vars,source">
+			<src path="./src" />
+			<classpath refid="example.compilation.classpath" />
+		</javac>
+	</target>
+
+	<target name="run" depends="compile">
+		<!-- TopicExample 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 ants when this example
+            is used in a smoke test -->
+		<java classname="org.jboss.example.jms.topic.TopicExample" classpathref="execution.classpath" fork="yes" failonerror="true">
+			<sysproperty key="example.topic.name" value="${example.topic.name}" />
+			<!--
+         <jvmarg line="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_shmem,server=y,suspend=y,address=example"/>
+          -->
+		</java>
+	</target>
+
+	<target name="clean">
+		<delete dir="./output" quiet="true" />
+		<delete dir="../common/output" quiet="true" />
+	</target>
+
+</project>
+

Added: branches/Branch_1_4/docs/examples/web-service/build.xml.AS5
===================================================================
--- branches/Branch_1_4/docs/examples/web-service/build.xml.AS5	                        (rev 0)
+++ branches/Branch_1_4/docs/examples/web-service/build.xml.AS5	2008-11-25 11:37:22 UTC (rev 5431)
@@ -0,0 +1,190 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+
+   To run the example, set JBOSS_HOME and run ant (with no parameters)
+
+   $Id: build.xml 5302 2008-11-07 05:44:31Z clebert.suconic at jboss.com $
+
+ -->
+
+<project name="WebServicesExample" default="run">
+
+   <property environment="ENV"/>
+
+   <!-- These properties may be overriden by calling ants when this example is used in a smoke test -->
+   <property file="../examples.properties"/>
+   <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"/>
+   <property name="example.queue.name" value="testQueue"/>
+
+   <path id="common.compilation.classpath">
+      <fileset file="${jboss.home}/client/jboss-j2ee.jar"/>
+      <fileset dir="${jboss.home}/client" includes="*.jar" />
+      <fileset file="${messaging.client.jar.name}"/>
+   </path>
+
+   <property name="jboss.client" value="${jboss.home}/client"/>
+
+   <path id="runtime.classpath">
+      <path refid="common.compilation.classpath"/>
+      <pathelement path="./etc"/>
+      <pathelement path="../common/output/classes"/>
+      <pathelement path="./output/classes"/>
+      <pathelement location="${messaging.client.jar.path}/${messaging.client.jar.name}"/>
+
+      <!-- all this stuff for WebServices -->
+      <pathelement location="${jboss.home}/lib/endorsed/xercesImpl.jar"/>
+      <pathelement location="${jboss.client}/activation.jar"/>
+      <pathelement location="${jboss.client}/commons-logging.jar"/>
+      <pathelement location="${jboss.client}/javassist.jar"/>
+      <pathelement location="${jboss.client}/jbossall-client.jar"/>
+      <pathelement location="${jboss.client}/jbossws-client.jar"/>
+      <pathelement location="${jboss.client}/log4j.jar"/>
+      <pathelement location="${jboss.client}/mail.jar"/>
+      <pathelement location="${jboss.client}/jboss-xml-binding.jar"/>
+      <pathelement location="${jboss.client}/jboss-jaxws.jar"/>
+      <pathelement location="${jboss.client}/jboss-jaxrpc.jar"/>
+      <pathelement location="${jboss.client}/jboss-saaj.jar"/>
+      <pathelement location="${jboss.client}/wsdl4j.jar"/>
+      <pathelement location="${jboss.client}/jaxb-api.jar"/>
+   </path>
+
+   <path id="client.classpath">
+      <path refid="common.compilation.classpath"/>
+      <pathelement path="./etc"/>
+      <pathelement path="../common/output/classes"/>
+      <pathelement path="./output/client-classes"/>
+
+      <!-- all this stuff for WebServices -->
+      <fileset file="${jboss.home}/server/${jboss.configuration}/lib/jboss-remoting.jar"/>
+      <pathelement location="${jboss.client}/activation.jar"/>
+      <pathelement location="${jboss.client}/commons-logging.jar"/>
+      <pathelement location="${jboss.client}/javassist.jar"/>
+      <pathelement location="${jboss.client}/jbossall-client.jar"/>
+      <pathelement location="${jboss.client}/jbossws-client.jar"/>
+      <pathelement location="${jboss.client}/log4j.jar"/>
+      <pathelement location="${jboss.client}/mail.jar"/>
+      <pathelement location="${jboss.client}/jboss-xml-binding.jar"/>
+      <pathelement location="${jboss.client}/jboss-jaxws.jar"/>
+      <pathelement location="${jboss.client}/jboss-jaxrpc.jar"/>
+      <pathelement location="${jboss.client}/jboss-saaj.jar"/>
+      <pathelement location="${jboss.client}/wsdl4j.jar"/>
+      <pathelement location="${jboss.client}/jaxb-api.jar"/>
+      <pathelement location="${jboss.home}/lib/endorsed/xercesImpl.jar"/>
+
+
+      <pathelement location="${messaging.client.jar.name}"/>
+      <pathelement location="${jboss.home}/client/jbossall-client.jar"/>
+      <pathelement location="${jboss.home}/server/${jboss.configuration}/lib/log4j.jar"/>
+      <pathelement location="${jboss.home}/server/${jboss.configuration}/lib/javassist.jar"/>
+      <pathelement location="${jboss.home}/server/${jboss.configuration}/deploy/jboss-aop-jdk50.deployer/jboss-aop-jdk50.jar"/>
+      <pathelement location="${jboss.home}/server/${jboss.configuration}/deploy/jboss-aop-jdk50.deployer/trove.jar"/>
+
+
+   </path>
+
+   <target name="identify">
+      <echo message="###########################################################################"/>
+      <echo message="#              Running the WebServices example                            #"/>
+      <echo message="###########################################################################"/>
+      <echo message="The queue:      ${example.queue.name}"/>
+      <echo message="The client jar: ${messaging.client.jar.name}"/>
+   </target>
+
+   <target name="sanity-check" depends="identify">
+      <available property="client.jar.present" file="${messaging.client.jar.name}"/>
+      <fail message="Could not find client jar ${messaging.client.jar.name}"
+            unless="client.jar.present"/>
+   </target>
+
+   <target name="init" depends="sanity-check">
+      <mkdir dir="./output/classes/META-INF"/>
+      <mkdir dir="./output/lib"/>
+      <mkdir dir="../common/output/classes"/>
+   </target>
+
+   <target name="compile" depends="init">
+      <javac destdir="../common/output/classes" debug="on" debuglevel="lines,vars,source">
+         <src path="../common/src"/>
+         <classpath refid="common.compilation.classpath"/>
+      </javac>
+      <javac destdir="./output/classes" debug="on" debuglevel="lines,vars,source">
+         <src path="./src"/>
+         <classpath refid="runtime.classpath"/>
+      </javac>
+   </target>
+
+   <target name="run-wsdl-client" depends="compile">
+      <taskdef name="wstools" classname="org.jboss.ws.tools.ant.wstools">
+        <classpath refid="runtime.classpath"/>
+      </taskdef>
+
+      <mkdir dir="./output/client"/>
+
+      <get src="http://127.0.0.1:8080/jms-web-service/JMSWebServiceExample?wsdl" dest="./output/service.wsdl" />
+
+      <wstools config="./etc/client-config/client-config.xml"
+               dest="./output/client"/>
+   </target>
+
+
+   <target name="war" depends="compile">
+      <jar destfile="./output/lib/jms-web-service.war">
+         <zipfileset dir="./output/classes" prefix="WEB-INF/classes"/>
+         <zipfileset dir="./etc/WEB-INF" prefix="WEB-INF"/>
+      </jar>
+   </target>
+
+   <target name="deploy" depends="war">
+      <copy file="./output/lib/jms-web-service.war"
+            todir="${jboss.home}/server/${jboss.configuration}/deploy"/>
+      <antcall target="sleep"><param name="sleep.interval" value="10"/></antcall>
+   </target>
+
+   <target name="compile-client">
+      <mkdir dir="./output/client-classes"/>
+      <javac destdir="./output/client-classes" debug="on" debuglevel="lines,vars,source">
+         <src path="./output/client"/>
+         <src path="./src-client"/>
+         <classpath refid="runtime.classpath"/>
+      </javac>
+   </target>
+
+
+   <target name="run" depends="deploy, run-wsdl-client, compile-client">
+      <antcall target="send-and-receive"/>
+      <antcall target="undeploy"/>
+   </target>
+
+   <target name="send-and-receive">
+      <!-- The client 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 ants when this example
+            is used in a smoke test -->
+      <java classname="org.jboss.example.jms.webservices.client.Client"
+            classpathref="client.classpath" fork="yes" failonerror="true">
+         <sysproperty key="example.queue.name" value="${example.queue.name}"/>
+         <!--
+         <jvmarg line="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_shmem,server=y,suspend=y,address=example"/>
+          -->
+      </java>
+   </target>
+
+   <target name="undeploy">
+      <delete file="${jboss.home}/server/${jboss.configuration}/deploy/jms-web-service.war"
+              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>
+




More information about the jboss-cvs-commits mailing list