tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject tomee git commit: trying to be more deterministic for ActiveMQResourceAdapterControlTest
Date Fri, 07 Apr 2017 21:31:03 GMT
Repository: tomee
Updated Branches:
  refs/heads/tomee-1.7.x db5aa025d -> a65b8eae9


trying to be more deterministic for ActiveMQResourceAdapterControlTest


Project: http://git-wip-us.apache.org/repos/asf/tomee/repo
Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/a65b8eae
Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/a65b8eae
Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/a65b8eae

Branch: refs/heads/tomee-1.7.x
Commit: a65b8eae9c0c80c7cdee3d45c897fccf6e46610f
Parents: db5aa02
Author: rmannibucau <rmannibucau@apache.org>
Authored: Fri Apr 7 21:39:13 2017 +0200
Committer: Mark Struberg <struberg@apache.org>
Committed: Fri Apr 7 23:30:25 2017 +0200

----------------------------------------------------------------------
 .../resource/activemq/ActiveMQResourceAdapterControlTest.java | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tomee/blob/a65b8eae/container/openejb-core/src/test/java/org/apache/openejb/resource/activemq/ActiveMQResourceAdapterControlTest.java
----------------------------------------------------------------------
diff --git a/container/openejb-core/src/test/java/org/apache/openejb/resource/activemq/ActiveMQResourceAdapterControlTest.java
b/container/openejb-core/src/test/java/org/apache/openejb/resource/activemq/ActiveMQResourceAdapterControlTest.java
index 40023a8..2da9cf8 100644
--- a/container/openejb-core/src/test/java/org/apache/openejb/resource/activemq/ActiveMQResourceAdapterControlTest.java
+++ b/container/openejb-core/src/test/java/org/apache/openejb/resource/activemq/ActiveMQResourceAdapterControlTest.java
@@ -31,6 +31,7 @@ import org.junit.Test;
 import org.junit.runner.RunWith;
 
 import javax.annotation.Resource;
+import javax.ejb.ActivationConfigProperty;
 import javax.ejb.MessageDriven;
 import javax.jms.Connection;
 import javax.jms.ConnectionFactory;
@@ -75,6 +76,7 @@ public class ActiveMQResourceAdapterControlTest {
 
                 .p("mdb", "new://Container?type=MESSAGE")
                 .p("mdb.resourceAdapter", "ra")
+                .p("mdb.InstanceLimit", "1")
 
                 .p("cf", "new://Resource?type=javax.jms.ConnectionFactory")
                 .p("cf.resourceAdapter", "ra")
@@ -173,7 +175,10 @@ public class ActiveMQResourceAdapterControlTest {
         }
     }
 
-    @MessageDriven(name = "ejb/Mdb")
+    @MessageDriven(name = "ejb/Mdb", activationConfig = {
+            @ActivationConfigProperty(propertyName = "maxSessions", propertyValue = "1"),
+            @ActivationConfigProperty(propertyName = "maxMessagesPerBatch", propertyValue
= "1")
+    })
     public static class Mdb implements MessageListener {
         static final MessageAwaiter awaiter = new MessageAwaiter();
 


Mime
View raw message