[seam-commits] Seam SVN: r14009 - in branches/community/Seam_2_2/examples: remoting/chatroom and 1 other directories.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Thu Jan 20 17:55:18 EST 2011
Author: manaRH
Date: 2011-01-20 17:55:17 -0500 (Thu, 20 Jan 2011)
New Revision: 14009
Added:
branches/community/Seam_2_2/examples/remoting/chatroom/resources/jboss-seam-chatroom-hornetq-jms.xml
Modified:
branches/community/Seam_2_2/examples/build.xml
branches/community/Seam_2_2/examples/remoting/chatroom/readme.txt
Log:
JBSEAM-4769 added configuration with Topic for Hornetq
Modified: branches/community/Seam_2_2/examples/build.xml
===================================================================
--- branches/community/Seam_2_2/examples/build.xml 2011-01-20 16:10:13 UTC (rev 14008)
+++ branches/community/Seam_2_2/examples/build.xml 2011-01-20 22:55:17 UTC (rev 14009)
@@ -44,6 +44,10 @@
<isset property="jboss6"/>
</condition>
+ <condition property="nohornetq" value="yes">
+ <not> <isset property="hornetq"/></not>
+ </condition>
+
<!-- Source directories -->
<property name="src.java.dir" value="src" />
<property name="src.test.dir" value="src" />
@@ -52,6 +56,7 @@
<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" />
+ <property name="example.jms" value="${example.name}-hornetq-jms.xml" />
<!-- Deployment directories -->
<property name="deploy.dir" value="${jboss.home}/server/default/deploy" />
@@ -933,7 +938,8 @@
<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 file="${deploy.dir}/${example.service}" failonerror="no" />
+ <delete file="${deploy.dir}/${example.jms}" failonerror="no"/>
<delete>
<fileset dir="${deploy.dir}">
<patternset refid="meldware.files" />
@@ -956,7 +962,8 @@
<fail unless="jboss.home">jboss.home not set</fail>
<copy todir="${deploy.dir}">
<fileset dir="${resources.dir}">
- <include name="${example.service}" />
+ <include name="${example.service}" if="nohornetq"/>
+ <include name="${example.jms}" if="hornetq" />
</fileset>
</copy>
</target>
Modified: branches/community/Seam_2_2/examples/remoting/chatroom/readme.txt
===================================================================
--- branches/community/Seam_2_2/examples/remoting/chatroom/readme.txt 2011-01-20 16:10:13 UTC (rev 14008)
+++ branches/community/Seam_2_2/examples/remoting/chatroom/readme.txt 2011-01-20 22:55:17 UTC (rev 14009)
@@ -4,4 +4,15 @@
This example shows using Seam Remoting to subscribe and publish messages to JMS.
It runs on JBoss AS as an EAR and Tomcat with Embedded JBoss as a WAR.
+NOTE:
+JBoss AS 6 has got new default JMS provider Hornetq, which requires different JMS configuration.
+JBoss AS 5 can have also Hornetq instead of default JBoss Messaging,
+therefore use JVM variable -Dhornetq=yes for deploying the configuration for Hornetq.
+
+For instance JBoss AS 6 with Hornetq:
+$ ant -Dhornetq=yes
+
+Otherwise without JVM variable it copies JBoss Messsaging configuration:
+$ ant
+
example.name=chatroom
Added: branches/community/Seam_2_2/examples/remoting/chatroom/resources/jboss-seam-chatroom-hornetq-jms.xml
===================================================================
--- branches/community/Seam_2_2/examples/remoting/chatroom/resources/jboss-seam-chatroom-hornetq-jms.xml (rev 0)
+++ branches/community/Seam_2_2/examples/remoting/chatroom/resources/jboss-seam-chatroom-hornetq-jms.xml 2011-01-20 22:55:17 UTC (rev 14009)
@@ -0,0 +1,13 @@
+<configuration xmlns="urn:hornetq"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="urn:hornetq /schema/hornetq-jms.xsd">
+
+
+ <!--the topic used by the example-->
+ <topic name="chatroomTopic">
+ <entry name="/topic/chatroomTopic"/>
+ </topic>
+
+
+
+</configuration>
More information about the seam-commits
mailing list