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

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Jun 25 08:19:22 EDT 2009


Author: gaohoward
Date: 2009-06-25 08:19:21 -0400 (Thu, 25 Jun 2009)
New Revision: 7466

Added:
   branches/Branch_1_4/docs/examples/bridge/etc/bridge-destinations-service.xml
   branches/Branch_1_4/docs/examples/ejb3mdb/etc/mdb-destinations-service.xml
   branches/Branch_1_4/docs/examples/http/etc/queue-destinations-service.xml
   branches/Branch_1_4/docs/examples/mdb-failure/etc/mdb-destinations-service.xml
   branches/Branch_1_4/docs/examples/mdb/etc/mdb-destinations-service.xml
   branches/Branch_1_4/docs/examples/queue/etc/queue-destinations-service.xml
   branches/Branch_1_4/docs/examples/secure-socket/etc/queue-destinations-service.xml
   branches/Branch_1_4/docs/examples/servlet/etc/queue-destinations-service.xml
   branches/Branch_1_4/docs/examples/stateless/etc/queue-destinations-service.xml
   branches/Branch_1_4/docs/examples/topic/etc/topic-destinations-service.xml
   branches/Branch_1_4/docs/examples/web-service/etc/queue-destinations-service.xml
Modified:
   branches/Branch_1_4/docs/examples/bridge/build.xml.AS5
   branches/Branch_1_4/docs/examples/common/src/org/jboss/example/jms/common/ExampleSupport.java
   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/build.xml.AS5
   branches/Branch_1_4/docs/examples/secure-socket/build.xml.AS5
   branches/Branch_1_4/docs/examples/servlet/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
Log:
JBMESSAGING-1644


Modified: branches/Branch_1_4/docs/examples/bridge/build.xml.AS5
===================================================================
--- branches/Branch_1_4/docs/examples/bridge/build.xml.AS5	2009-06-25 09:59:45 UTC (rev 7465)
+++ branches/Branch_1_4/docs/examples/bridge/build.xml.AS5	2009-06-25 12:19:21 UTC (rev 7466)
@@ -69,6 +69,10 @@
 	</target>
 
 	<target name="deploy" depends="compile">
+        <copy file="./etc/bridge-destinations-service.xml" todir="${jboss.home}/server/${jboss.configuration}/deploy" />
+     	<antcall target="sleep">
+			<param name="sleep.interval" value="5" />
+		</antcall>
 		<copy file="./etc/test-bridge-service.xml" todir="${jboss.home}/server/${jboss.configuration}/deploy" />
 		<antcall target="sleep">
 			<param name="sleep.interval" value="5" />
@@ -77,6 +81,7 @@
 
 	<target name="undeploy">
 		<delete file="${jboss.home}/server/${jboss.configuration}/deploy/test-bridge-service.xml" quiet="true" />
+		<delete file="${jboss.home}/server/${jboss.configuration}/deploy/mdb-destinations-service.xml" quiet="true" />
 	</target>
 
 	<target name="run" depends="deploy">
@@ -93,6 +98,7 @@
 	<target name="clean" depends="undeploy">
 		<delete dir="./output" quiet="true" />
 		<delete dir="../common/output" quiet="true" />
+		<delete file="${jboss.home}/server/${jboss.configuration}/deploy/bridge-destinations-service.xml" quiet="true" />
 	</target>
 
 	<target name="sleep">

Added: branches/Branch_1_4/docs/examples/bridge/etc/bridge-destinations-service.xml
===================================================================
--- branches/Branch_1_4/docs/examples/bridge/etc/bridge-destinations-service.xml	                        (rev 0)
+++ branches/Branch_1_4/docs/examples/bridge/etc/bridge-destinations-service.xml	2009-06-25 12:19:21 UTC (rev 7466)
@@ -0,0 +1,23 @@
+<?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=A"
+      xmbean-dd="xmdesc/Queue-xmbean.xml">
+      <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+      <depends>jboss.messaging:service=PostOffice</depends>
+   </mbean>
+
+   <mbean code="org.jboss.jms.server.destination.QueueService"
+      name="jboss.messaging.destination:service=Queue,name=B"
+      xmbean-dd="xmdesc/Queue-xmbean.xml">
+      <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+      <depends>jboss.messaging:service=PostOffice</depends>
+   </mbean>
+   
+</server>

Modified: branches/Branch_1_4/docs/examples/common/src/org/jboss/example/jms/common/ExampleSupport.java
===================================================================
--- branches/Branch_1_4/docs/examples/common/src/org/jboss/example/jms/common/ExampleSupport.java	2009-06-25 09:59:45 UTC (rev 7465)
+++ branches/Branch_1_4/docs/examples/common/src/org/jboss/example/jms/common/ExampleSupport.java	2009-06-25 12:19:21 UTC (rev 7466)
@@ -117,6 +117,7 @@
    private boolean failure;
    private boolean deployed;
    private String jndiDestinationName;
+   private String jndiDestinationName2;
    
    // Constructors --------------------------------------------------
    
@@ -198,13 +199,32 @@
    
    protected void setup(InitialContext ic) throws Exception
    {
-      String destinationName;
+      String destinationName = null;
+	  String destinationName2 = null;
       
       if (isQueueExample())
       {
          destinationName = System.getProperty("example.queue.name");
+		 
+		 if (destinationName == null)
+		 {
+            destinationName = System.getProperty("example.source.queue");
+			if (destinationName != null)
+			{
+               destinationName2 = System.getProperty("example.target.queue");
+			   if (destinationName2 != null)
+			   {
+				  jndiDestinationName2 = "/queue/" + destinationName2;
+			   }
+		    }
+			else
+			{
+               destinationName = DEFAULT_QUEUE_NAME;
+		    }
+		 }
+		 
          jndiDestinationName =
-            "/queue/"  + (destinationName == null ? DEFAULT_QUEUE_NAME : destinationName);
+            "/queue/"  + destinationName;
       }
       else
       {
@@ -219,6 +239,10 @@
 		 if (isQueueExample())
 		 {
             Util.deployQueue(jndiDestinationName,ic);
+			if (jndiDestinationName2 != null)
+			{
+               Util.deployQueue(jndiDestinationName2, ic);
+		    }
 		 }
 		 else
 		 {
@@ -238,6 +262,10 @@
       if (deployed)
       {
          Util.undeployQueue(jndiDestinationName,ic);
+		 if (jndiDestinationName2 != null)
+		 {
+	        Util.undeployQueue(jndiDestinationName2);
+		 }
       }
    }
    

Modified: branches/Branch_1_4/docs/examples/ejb3mdb/build.xml.AS5
===================================================================
--- branches/Branch_1_4/docs/examples/ejb3mdb/build.xml.AS5	2009-06-25 09:59:45 UTC (rev 7465)
+++ branches/Branch_1_4/docs/examples/ejb3mdb/build.xml.AS5	2009-06-25 12:19:21 UTC (rev 7466)
@@ -77,6 +77,10 @@
 	</target>
 
 	<target name="deploy" depends="jar">
+        <copy file="./etc/mdb-destinations-service.xml" todir="${jboss.home}/server/${jboss.configuration}/deploy" />
+     	<antcall target="sleep">
+			<param name="sleep.interval" value="5" />
+		</antcall>
 		<copy file="./output/lib/mdb-example.${ej3-extension}" todir="${jboss.home}/server/${jboss.configuration}/deploy" />
 		<antcall target="sleep">
 			<param name="sleep.interval" value="5" />
@@ -102,6 +106,7 @@
 
 	<target name="undeploy">
 		<delete file="${jboss.home}/server/${jboss.configuration}/deploy/mdb-example.${ej3-extension}" quiet="true" />
+		<delete file="${jboss.home}/server/${jboss.configuration}/deploy/mdb-destinations-service.xml" quiet="true" />
 	</target>
 
 	<target name="clean" depends="undeploy">

Added: branches/Branch_1_4/docs/examples/ejb3mdb/etc/mdb-destinations-service.xml
===================================================================
--- branches/Branch_1_4/docs/examples/ejb3mdb/etc/mdb-destinations-service.xml	                        (rev 0)
+++ branches/Branch_1_4/docs/examples/ejb3mdb/etc/mdb-destinations-service.xml	2009-06-25 12:19:21 UTC (rev 7466)
@@ -0,0 +1,23 @@
+<?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=testQueue"
+      xmbean-dd="xmdesc/Queue-xmbean.xml">
+      <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+      <depends>jboss.messaging:service=PostOffice</depends>
+      <attribute name="SecurityConfig">
+         <security>
+            <role name="guest" read="true" write="true"/>
+            <role name="publisher" read="true" write="true" create="false"/>
+            <role name="noacc" read="false" write="false" create="false"/>
+         </security>
+      </attribute>
+   </mbean>
+   
+</server>

Modified: branches/Branch_1_4/docs/examples/http/build.xml.AS5
===================================================================
--- branches/Branch_1_4/docs/examples/http/build.xml.AS5	2009-06-25 09:59:45 UTC (rev 7465)
+++ branches/Branch_1_4/docs/examples/http/build.xml.AS5	2009-06-25 12:19:21 UTC (rev 7466)
@@ -64,6 +64,10 @@
 	</target>
 
 	<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="5" />
+		</antcall>
 		<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">
@@ -87,6 +91,7 @@
 	<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" />
+		<delete file="${jboss.home}/server/${jboss.configuration}/deploy/queue-destinations-service.xml" quiet="true" />
 	</target>
 
 	<target name="clean" depends="undeploy">

Added: branches/Branch_1_4/docs/examples/http/etc/queue-destinations-service.xml
===================================================================
--- branches/Branch_1_4/docs/examples/http/etc/queue-destinations-service.xml	                        (rev 0)
+++ branches/Branch_1_4/docs/examples/http/etc/queue-destinations-service.xml	2009-06-25 12:19:21 UTC (rev 7466)
@@ -0,0 +1,23 @@
+<?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=testQueue"
+      xmbean-dd="xmdesc/Queue-xmbean.xml">
+      <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+      <depends>jboss.messaging:service=PostOffice</depends>
+      <attribute name="SecurityConfig">
+         <security>
+            <role name="guest" read="true" write="true"/>
+            <role name="publisher" read="true" write="true" create="false"/>
+            <role name="noacc" read="false" write="false" create="false"/>
+         </security>
+      </attribute>
+   </mbean>
+   
+</server>

Modified: branches/Branch_1_4/docs/examples/mdb/build.xml.AS5
===================================================================
--- branches/Branch_1_4/docs/examples/mdb/build.xml.AS5	2009-06-25 09:59:45 UTC (rev 7465)
+++ branches/Branch_1_4/docs/examples/mdb/build.xml.AS5	2009-06-25 12:19:21 UTC (rev 7466)
@@ -88,6 +88,10 @@
 	</target>
 
 	<target name="deploy" depends="ear">
+        <copy file="./etc/mdb-destinations-service.xml" todir="${jboss.home}/server/${jboss.configuration}/deploy" />
+     	<antcall target="sleep">
+			<param name="sleep.interval" value="5" />
+		</antcall>
 		<copy file="./output/lib/mdb-example.ear" todir="${jboss.home}/server/${jboss.configuration}/deploy" />
 		<antcall target="sleep">
 			<param name="sleep.interval" value="5" />
@@ -113,6 +117,7 @@
 
 	<target name="undeploy">
 		<delete file="${jboss.home}/server/${jboss.configuration}/deploy/mdb-example.ear" quiet="true" />
+		<delete file="${jboss.home}/server/${jboss.configuration}/deploy/mdb-destinations-service.xml" quiet="true" />
 	</target>
 
 	<target name="clean" depends="undeploy">

Added: branches/Branch_1_4/docs/examples/mdb/etc/mdb-destinations-service.xml
===================================================================
--- branches/Branch_1_4/docs/examples/mdb/etc/mdb-destinations-service.xml	                        (rev 0)
+++ branches/Branch_1_4/docs/examples/mdb/etc/mdb-destinations-service.xml	2009-06-25 12:19:21 UTC (rev 7466)
@@ -0,0 +1,23 @@
+<?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=testQueue"
+      xmbean-dd="xmdesc/Queue-xmbean.xml">
+      <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+      <depends>jboss.messaging:service=PostOffice</depends>
+      <attribute name="SecurityConfig">
+         <security>
+            <role name="guest" read="true" write="true"/>
+            <role name="publisher" read="true" write="true" create="false"/>
+            <role name="noacc" read="false" write="false" create="false"/>
+         </security>
+      </attribute>
+   </mbean>
+   
+</server>

Modified: branches/Branch_1_4/docs/examples/mdb-failure/build.xml.AS5
===================================================================
--- branches/Branch_1_4/docs/examples/mdb-failure/build.xml.AS5	2009-06-25 09:59:45 UTC (rev 7465)
+++ branches/Branch_1_4/docs/examples/mdb-failure/build.xml.AS5	2009-06-25 12:19:21 UTC (rev 7466)
@@ -83,6 +83,10 @@
 	</target>
 
 	<target name="deploy" depends="jar">
+        <copy file="./etc/mdb-destinations-service.xml" todir="${jboss.home}/server/${jboss.configuration}/deploy" />
+     	<antcall target="sleep">
+			<param name="sleep.interval" value="5" />
+		</antcall>
 		<copy file="./output/lib/mdb-failure-example.jar" todir="${jboss.home}/server/${jboss.configuration}/deploy" />
 		<antcall target="sleep">
 			<param name="sleep.interval" value="5" />
@@ -114,6 +118,7 @@
 
 	<target name="undeploy">
 		<delete file="${jboss.home}/server/${jboss.configuration}/deploy/mdb-failure-example.jar" quiet="${undeploy.quiet}" failonerror="${undeploy.failonerror}" />
+		<delete file="${jboss.home}/server/${jboss.configuration}/deploy/mdb-destinations-service.xml" quiet="true" />
 	</target>
 
 	<target name="clean" depends="undeploy">

Added: branches/Branch_1_4/docs/examples/mdb-failure/etc/mdb-destinations-service.xml
===================================================================
--- branches/Branch_1_4/docs/examples/mdb-failure/etc/mdb-destinations-service.xml	                        (rev 0)
+++ branches/Branch_1_4/docs/examples/mdb-failure/etc/mdb-destinations-service.xml	2009-06-25 12:19:21 UTC (rev 7466)
@@ -0,0 +1,23 @@
+<?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=testQueue"
+      xmbean-dd="xmdesc/Queue-xmbean.xml">
+      <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+      <depends>jboss.messaging:service=PostOffice</depends>
+      <attribute name="SecurityConfig">
+         <security>
+            <role name="guest" read="true" write="true"/>
+            <role name="publisher" read="true" write="true" create="false"/>
+            <role name="noacc" read="false" write="false" create="false"/>
+         </security>
+      </attribute>
+   </mbean>
+   
+</server>

Modified: branches/Branch_1_4/docs/examples/queue/build.xml.AS5
===================================================================
--- branches/Branch_1_4/docs/examples/queue/build.xml.AS5	2009-06-25 09:59:45 UTC (rev 7465)
+++ branches/Branch_1_4/docs/examples/queue/build.xml.AS5	2009-06-25 12:19:21 UTC (rev 7466)
@@ -65,8 +65,15 @@
 			<classpath refid="example.compilation.classpath" />
 		</javac>
 	</target>
+	
+	<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="5" />
+		</antcall>
+	</target>
 
-	<target name="run" depends="compile">
+	<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 -->
@@ -76,12 +83,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" />
+	</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/etc/queue-destinations-service.xml
===================================================================
--- branches/Branch_1_4/docs/examples/queue/etc/queue-destinations-service.xml	                        (rev 0)
+++ branches/Branch_1_4/docs/examples/queue/etc/queue-destinations-service.xml	2009-06-25 12:19:21 UTC (rev 7466)
@@ -0,0 +1,23 @@
+<?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=testQueue"
+      xmbean-dd="xmdesc/Queue-xmbean.xml">
+      <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+      <depends>jboss.messaging:service=PostOffice</depends>
+      <attribute name="SecurityConfig">
+         <security>
+            <role name="guest" read="true" write="true"/>
+            <role name="publisher" read="true" write="true" create="false"/>
+            <role name="noacc" read="false" write="false" create="false"/>
+         </security>
+      </attribute>
+   </mbean>
+   
+</server>

Modified: branches/Branch_1_4/docs/examples/secure-socket/build.xml.AS5
===================================================================
--- branches/Branch_1_4/docs/examples/secure-socket/build.xml.AS5	2009-06-25 09:59:45 UTC (rev 7465)
+++ branches/Branch_1_4/docs/examples/secure-socket/build.xml.AS5	2009-06-25 12:19:21 UTC (rev 7466)
@@ -16,7 +16,7 @@
     <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="remoting.path" value="../config" />
 	<property name="messaging.client.jar.name" value="${jboss.home}/client/jboss-messaging-client.jar" />
 	<property name="jboss.configuration" value="default" />
 	<property name="example.queue.name" value="testQueue" />
@@ -65,6 +65,10 @@
 	</target>
 
 	<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="5" />
+		</antcall>
 		<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" />
@@ -92,6 +96,7 @@
 		<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" />
+		<delete file="${jboss.home}/server/${jboss.configuration}/deploy/queue-destinations-service.xml" quiet="true" />
 	</target>
 
 	<target name="clean" depends="undeploy">

Added: branches/Branch_1_4/docs/examples/secure-socket/etc/queue-destinations-service.xml
===================================================================
--- branches/Branch_1_4/docs/examples/secure-socket/etc/queue-destinations-service.xml	                        (rev 0)
+++ branches/Branch_1_4/docs/examples/secure-socket/etc/queue-destinations-service.xml	2009-06-25 12:19:21 UTC (rev 7466)
@@ -0,0 +1,23 @@
+<?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=testQueue"
+      xmbean-dd="xmdesc/Queue-xmbean.xml">
+      <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+      <depends>jboss.messaging:service=PostOffice</depends>
+      <attribute name="SecurityConfig">
+         <security>
+            <role name="guest" read="true" write="true"/>
+            <role name="publisher" read="true" write="true" create="false"/>
+            <role name="noacc" read="false" write="false" create="false"/>
+         </security>
+      </attribute>
+   </mbean>
+   
+</server>

Modified: branches/Branch_1_4/docs/examples/servlet/build.xml.AS5
===================================================================
--- branches/Branch_1_4/docs/examples/servlet/build.xml.AS5	2009-06-25 09:59:45 UTC (rev 7465)
+++ branches/Branch_1_4/docs/examples/servlet/build.xml.AS5	2009-06-25 12:19:21 UTC (rev 7466)
@@ -68,6 +68,10 @@
    </target>
 
    <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="5" />
+		</antcall>
       <copy todir="${jboss.home}/server/${jboss.configuration}/deploy">
          <fileset dir="${remoting.path}">
             <include name="remoting-servlet-service.xml"/>
@@ -97,6 +101,7 @@
       <delete file="${jboss.home}/server/${jboss.configuration}/deploy/messaging-servlet-service.xml" quiet="true"/>
       <delete file="${jboss.home}/server/${jboss.configuration}/deploy/remoting-servlet-service.xml" quiet="true"/>
       <delete dir="${jboss.home}/server/${jboss.configuration}/deploy/servlet-invoker.war"/>
+	  <delete file="${jboss.home}/server/${jboss.configuration}/deploy/queue-destinations-service.xml" quiet="true" />
    </target>
 
    <target name="clean" depends="undeploy">

Added: branches/Branch_1_4/docs/examples/servlet/etc/queue-destinations-service.xml
===================================================================
--- branches/Branch_1_4/docs/examples/servlet/etc/queue-destinations-service.xml	                        (rev 0)
+++ branches/Branch_1_4/docs/examples/servlet/etc/queue-destinations-service.xml	2009-06-25 12:19:21 UTC (rev 7466)
@@ -0,0 +1,23 @@
+<?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=testQueue"
+      xmbean-dd="xmdesc/Queue-xmbean.xml">
+      <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+      <depends>jboss.messaging:service=PostOffice</depends>
+      <attribute name="SecurityConfig">
+         <security>
+            <role name="guest" read="true" write="true"/>
+            <role name="publisher" read="true" write="true" create="false"/>
+            <role name="noacc" read="false" write="false" create="false"/>
+         </security>
+      </attribute>
+   </mbean>
+   
+</server>

Modified: branches/Branch_1_4/docs/examples/stateless/build.xml.AS5
===================================================================
--- branches/Branch_1_4/docs/examples/stateless/build.xml.AS5	2009-06-25 09:59:45 UTC (rev 7465)
+++ branches/Branch_1_4/docs/examples/stateless/build.xml.AS5	2009-06-25 12:19:21 UTC (rev 7466)
@@ -75,6 +75,10 @@
 	</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="5" />
+		</antcall>
 		<copy file="./output/lib/stateless-example.jar" todir="${jboss.home}/server/${jboss.configuration}/deploy" />
 		<antcall target="sleep">
 			<param name="sleep.interval" value="5" />
@@ -100,6 +104,7 @@
 
 	<target name="undeploy">
 		<delete file="${jboss.home}/server/${jboss.configuration}/deploy/stateless-example.jar" quiet="true" />
+	    <delete file="${jboss.home}/server/${jboss.configuration}/deploy/queue-destinations-service.xml" quiet="true" />
 	</target>
 
 	<target name="clean" depends="undeploy">

Added: branches/Branch_1_4/docs/examples/stateless/etc/queue-destinations-service.xml
===================================================================
--- branches/Branch_1_4/docs/examples/stateless/etc/queue-destinations-service.xml	                        (rev 0)
+++ branches/Branch_1_4/docs/examples/stateless/etc/queue-destinations-service.xml	2009-06-25 12:19:21 UTC (rev 7466)
@@ -0,0 +1,23 @@
+<?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=testQueue"
+      xmbean-dd="xmdesc/Queue-xmbean.xml">
+      <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+      <depends>jboss.messaging:service=PostOffice</depends>
+      <attribute name="SecurityConfig">
+         <security>
+            <role name="guest" read="true" write="true"/>
+            <role name="publisher" read="true" write="true" create="false"/>
+            <role name="noacc" read="false" write="false" create="false"/>
+         </security>
+      </attribute>
+   </mbean>
+   
+</server>

Modified: branches/Branch_1_4/docs/examples/topic/build.xml.AS5
===================================================================
--- branches/Branch_1_4/docs/examples/topic/build.xml.AS5	2009-06-25 09:59:45 UTC (rev 7465)
+++ branches/Branch_1_4/docs/examples/topic/build.xml.AS5	2009-06-25 12:19:21 UTC (rev 7466)
@@ -65,8 +65,15 @@
 			<classpath refid="example.compilation.classpath" />
 		</javac>
 	</target>
+	
+	<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="5" />
+		</antcall>
+	</target>
 
-	<target name="run" depends="compile">
+	<target name="run" depends="compile, deploy">
 		<!-- 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 -->
@@ -76,12 +83,22 @@
          <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" />
+	</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/etc/topic-destinations-service.xml
===================================================================
--- branches/Branch_1_4/docs/examples/topic/etc/topic-destinations-service.xml	                        (rev 0)
+++ branches/Branch_1_4/docs/examples/topic/etc/topic-destinations-service.xml	2009-06-25 12:19:21 UTC (rev 7466)
@@ -0,0 +1,23 @@
+<?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=testTopic"
+      xmbean-dd="xmdesc/Topic-xmbean.xml">
+      <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+      <depends>jboss.messaging:service=PostOffice</depends>
+      <attribute name="SecurityConfig">
+         <security>
+            <role name="guest" read="true" write="true"/>
+            <role name="publisher" read="true" write="true" create="false"/>
+            <role name="noacc" read="false" write="false" create="false"/>
+         </security>
+      </attribute>
+   </mbean>
+   
+</server>

Modified: branches/Branch_1_4/docs/examples/web-service/build.xml.AS5
===================================================================
--- branches/Branch_1_4/docs/examples/web-service/build.xml.AS5	2009-06-25 09:59:45 UTC (rev 7465)
+++ branches/Branch_1_4/docs/examples/web-service/build.xml.AS5	2009-06-25 12:19:21 UTC (rev 7466)
@@ -139,6 +139,10 @@
    </target>
 
    <target name="deploy" depends="war">
+        <copy file="./etc/queue-destinations-service.xml" todir="${jboss.home}/server/${jboss.configuration}/deploy" />
+     	<antcall target="sleep">
+			<param name="sleep.interval" value="5" />
+		</antcall>
       <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>
@@ -175,6 +179,7 @@
    <target name="undeploy">
       <delete file="${jboss.home}/server/${jboss.configuration}/deploy/jms-web-service.war"
               quiet="true"/>
+	    <delete file="${jboss.home}/server/${jboss.configuration}/deploy/queue-destinations-service.xml" quiet="true" />
    </target>
 
    <target name="clean" depends="undeploy">

Added: branches/Branch_1_4/docs/examples/web-service/etc/queue-destinations-service.xml
===================================================================
--- branches/Branch_1_4/docs/examples/web-service/etc/queue-destinations-service.xml	                        (rev 0)
+++ branches/Branch_1_4/docs/examples/web-service/etc/queue-destinations-service.xml	2009-06-25 12:19:21 UTC (rev 7466)
@@ -0,0 +1,23 @@
+<?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=testQueue"
+      xmbean-dd="xmdesc/Queue-xmbean.xml">
+      <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+      <depends>jboss.messaging:service=PostOffice</depends>
+      <attribute name="SecurityConfig">
+         <security>
+            <role name="guest" read="true" write="true"/>
+            <role name="publisher" read="true" write="true" create="false"/>
+            <role name="noacc" read="false" write="false" create="false"/>
+         </security>
+      </attribute>
+   </mbean>
+   
+</server>




More information about the jboss-cvs-commits mailing list