[hornetq-commits] JBoss hornetq SVN: r8410 - in trunk/examples/javaee: jca-config/src/org/hornetq/javaee/example/server and 3 other directories.

do-not-reply at jboss.org do-not-reply at jboss.org
Thu Nov 26 07:16:24 EST 2009


Author: ataylor
Date: 2009-11-26 07:16:24 -0500 (Thu, 26 Nov 2009)
New Revision: 8410

Modified:
   trunk/examples/javaee/jca-config/build.xml
   trunk/examples/javaee/jca-config/src/org/hornetq/javaee/example/server/MDBQueueA.java
   trunk/examples/javaee/jca-config/src/org/hornetq/javaee/example/server2/MDBQueueB.java
   trunk/examples/javaee/jms-bridge/server/jms-bridge-jboss-beans.xml
   trunk/examples/javaee/mdb-cmt-tx-not-supported/config/ant.properties
Log:
javaee example fixes

Modified: trunk/examples/javaee/jca-config/build.xml
===================================================================
--- trunk/examples/javaee/jca-config/build.xml	2009-11-26 11:55:55 UTC (rev 8409)
+++ trunk/examples/javaee/jca-config/build.xml	2009-11-26 12:16:24 UTC (rev 8410)
@@ -48,7 +48,7 @@
             <include name="hornetq-configuration.xml"/>
          </fileset>
       </copy>
-      <copy todir="${deploy.dir2}/deploy/jms-ra.rar/META-INF">
+      <copy todir="${deploy.dir2}/deploy/hornetq-ra.rar/META-INF">
          <fileset dir="server2">
             <include name="ra.xml"/>
          </fileset>

Modified: trunk/examples/javaee/jca-config/src/org/hornetq/javaee/example/server/MDBQueueA.java
===================================================================
--- trunk/examples/javaee/jca-config/src/org/hornetq/javaee/example/server/MDBQueueA.java	2009-11-26 11:55:55 UTC (rev 8409)
+++ trunk/examples/javaee/jca-config/src/org/hornetq/javaee/example/server/MDBQueueA.java	2009-11-26 12:16:24 UTC (rev 8410)
@@ -12,6 +12,8 @@
  */
 package org.hornetq.javaee.example.server;
 
+import org.jboss.ejb3.annotation.ResourceAdapter;
+
 import javax.ejb.ActivationConfigProperty;
 import javax.ejb.MessageDriven;
 import javax.jms.Message;
@@ -31,6 +33,7 @@
                         @ActivationConfigProperty(propertyName = "destination", propertyValue = "queue/A"),
                         @ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge")
                      })
+ at ResourceAdapter("hornetq-ra.rar")
 public class MDBQueueA implements MessageListener
 {
    public void onMessage(Message message)

Modified: trunk/examples/javaee/jca-config/src/org/hornetq/javaee/example/server2/MDBQueueB.java
===================================================================
--- trunk/examples/javaee/jca-config/src/org/hornetq/javaee/example/server2/MDBQueueB.java	2009-11-26 11:55:55 UTC (rev 8409)
+++ trunk/examples/javaee/jca-config/src/org/hornetq/javaee/example/server2/MDBQueueB.java	2009-11-26 12:16:24 UTC (rev 8410)
@@ -12,6 +12,8 @@
  */
 package org.hornetq.javaee.example.server2;
 
+import org.jboss.ejb3.annotation.ResourceAdapter;
+
 import javax.ejb.ActivationConfigProperty;
 import javax.ejb.MessageDriven;
 import javax.jms.Message;
@@ -31,6 +33,7 @@
                         @ActivationConfigProperty(propertyName = "destination", propertyValue = "queue/B"),
                         @ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge")
                      })
+ at ResourceAdapter("hornetq-ra.rar")
 public class MDBQueueB implements MessageListener
 {
    public void onMessage(Message message)

Modified: trunk/examples/javaee/jms-bridge/server/jms-bridge-jboss-beans.xml
===================================================================
--- trunk/examples/javaee/jms-bridge/server/jms-bridge-jboss-beans.xml	2009-11-26 11:55:55 UTC (rev 8409)
+++ trunk/examples/javaee/jms-bridge/server/jms-bridge-jboss-beans.xml	2009-11-26 12:16:24 UTC (rev 8410)
@@ -50,7 +50,7 @@
                <parameter>true</parameter>
                <!-- register the JMS Bridge in the AS MBeanServer -->
                <parameter>
-                   <inject bean="MBeanServer"/>
+                   <inject bean="TheMBeanServer"/>
                </parameter>
                <parameter>org.hornetq:service=JMSBridge</parameter>
            </constructor>
@@ -123,7 +123,7 @@
          </constructor>
       </bean>
 
-      <bean name="MBeanServer" class="javax.management.MBeanServer">
+      <bean name="TheMBeanServer" class="javax.management.MBeanServer">
          <constructor factoryClass="org.jboss.mx.util.MBeanServerLocator"
                       factoryMethod="locateJBoss"/>
       </bean>

Modified: trunk/examples/javaee/mdb-cmt-tx-not-supported/config/ant.properties
===================================================================
--- trunk/examples/javaee/mdb-cmt-tx-not-supported/config/ant.properties	2009-11-26 11:55:55 UTC (rev 8409)
+++ trunk/examples/javaee/mdb-cmt-tx-not-supported/config/ant.properties	2009-11-26 12:16:24 UTC (rev 8410)
@@ -1 +1 @@
-example.name=mdb-cmt-tx-not-required
\ No newline at end of file
+example.name=mdb-cmt-tx-not-supported
\ No newline at end of file



More information about the hornetq-commits mailing list