[seam-commits] Seam SVN: r9113 - in trunk/examples: remoting/chatroom/resources and 1 other directory.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Tue Sep 23 09:06:27 EDT 2008


Author: shane.bryzak at jboss.com
Date: 2008-09-23 09:06:27 -0400 (Tue, 23 Sep 2008)
New Revision: 9113

Added:
   trunk/examples/remoting/chatroom/resources/jboss-seam-chatroom-service.xml
Removed:
   trunk/examples/remoting/chatroom/resources/chatroom-service.xml
Modified:
   trunk/examples/build.xml
Log:
JBSEAM-3429

Modified: trunk/examples/build.xml
===================================================================
--- trunk/examples/build.xml	2008-09-23 12:44:26 UTC (rev 9112)
+++ trunk/examples/build.xml	2008-09-23 13:06:27 UTC (rev 9113)
@@ -28,6 +28,7 @@
 	<property name="resources.dir" value="resources" />
 	<property name="validate.resources.dir" value="${resources.dir}" />
 	<property name="example.ds" value="${example.name}-ds.xml" />
+	<property name="example.service" value="${example.name}-service.xml" />
 
 	<!-- Deployment directories -->
 	<property name="deploy.dir" value="${jboss.home}/server/default/deploy" />
@@ -679,7 +680,7 @@
 	</target>
 
 	<!-- Deploy the target to JBoss AS -->
-	<target name="deploy" depends="archive, datasource, meldware" description="Deploy the example to JBoss AS">
+	<target name="deploy" depends="archive, datasource, service, meldware" description="Deploy the example to JBoss AS">
 		<fail unless="jboss.home">
 			jboss.home not set, update build.properties
 		</fail>
@@ -708,6 +709,7 @@
 	<target name="undeploy" description="Undeploy the example from JBoss">
 		<delete file="${deploy.dir}/${example.name}.ear" />
 		<delete file="${deploy.dir}/${example.ds}" />
+		<delete file="${deploy.dir}/${example.service}" />
 		<delete>
 			<fileset dir="${deploy.dir}">
 				<patternset refid="meldware.files" />
@@ -725,6 +727,16 @@
 		</copy>
 	</target>
 
+	<!-- Copy service file to JBoss AS -->
+	<target name="service">
+		<fail unless="jboss.home">jboss.home not set</fail>
+		<copy todir="${deploy.dir}">
+			<fileset dir="${resources.dir}">
+				<include name="${example.service}" />
+			</fileset>
+		</copy>
+	</target>
+
 	<target name="explode" depends="jar,jboss.war,ear,datasource, meldware" description="Deploy the exploded archive">
 		<fail unless="jboss.home">jboss.home not set</fail>
 
@@ -749,6 +761,7 @@
 			</fileset>
 		</delete>
 		<delete file="${deploy.dir}/${example.name}-ds.xml" failonerror="no" />
+		<delete file="${deploy.dir}/${example.name}-service.xml" failonerror="no" />		
 		<delete dir="${ear.deploy.dir}" failonerror="no" />
 		<delete failonerror="no">
 			<fileset dir="${deploy.dir}">
@@ -917,6 +930,7 @@
 	<target name="jbosswar.unexplode" description="Undeploy the example from JBoss">
 		<delete dir="${deploy.dir}/${example.name}.war" />
 		<delete file="${deploy.dir}/${example.name}-ds.xml" failonerror="no" />
+		<delete file="${deploy.dir}/${example.name}-service.xml" failonerror="no" />
 	</target>
 
 	<!-- #################### TEST TARGETS (JBOSS AS) ##################### -->

Deleted: trunk/examples/remoting/chatroom/resources/chatroom-service.xml
===================================================================
--- trunk/examples/remoting/chatroom/resources/chatroom-service.xml	2008-09-23 12:44:26 UTC (rev 9112)
+++ trunk/examples/remoting/chatroom/resources/chatroom-service.xml	2008-09-23 13:06:27 UTC (rev 9113)
@@ -1,16 +0,0 @@
-<server>
-
-  <mbean code="org.jboss.mq.server.jmx.Topic"
-         name="jboss.mq.destination:service=Topic,name=chatroomTopic">
-    <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
-    <depends optional-attribute-name="SecurityManager">jboss.mq:service=SecurityManager</depends>
-    <attribute name="SecurityConf">
-      <security>
-        <role name="guest" read="true" write="true"/>
-        <role name="publisher" read="true" write="true" create="false"/>
-        <role name="durpublisher" read="true" write="true" create="true"/>
-      </security>
-    </attribute>
-  </mbean>
-
-</server>

Added: trunk/examples/remoting/chatroom/resources/jboss-seam-chatroom-service.xml
===================================================================
--- trunk/examples/remoting/chatroom/resources/jboss-seam-chatroom-service.xml	                        (rev 0)
+++ trunk/examples/remoting/chatroom/resources/jboss-seam-chatroom-service.xml	2008-09-23 13:06:27 UTC (rev 9113)
@@ -0,0 +1,16 @@
+<server>
+
+  <mbean code="org.jboss.mq.server.jmx.Topic"
+         name="jboss.mq.destination:service=Topic,name=chatroomTopic">
+    <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
+    <depends optional-attribute-name="SecurityManager">jboss.mq:service=SecurityManager</depends>
+    <attribute name="SecurityConf">
+      <security>
+        <role name="guest" read="true" write="true"/>
+        <role name="publisher" read="true" write="true" create="false"/>
+        <role name="durpublisher" read="true" write="true" create="true"/>
+      </security>
+    </attribute>
+  </mbean>
+
+</server>




More information about the seam-commits mailing list