tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject tomee git commit: trying to be more deterministic for ActiveMQResourceAdapterControlTest
Date Fri, 07 Apr 2017 19:39:27 GMT
Repository: tomee
Updated Branches:
  refs/heads/master 162d713b3 -> d508aba03


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/d508aba0
Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/d508aba0
Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/d508aba0

Branch: refs/heads/master
Commit: d508aba03c0d5b5c1e55abc433ade2a729540c1c
Parents: 162d713
Author: rmannibucau <rmannibucau@apache.org>
Authored: Fri Apr 7 21:39:13 2017 +0200
Committer: rmannibucau <rmannibucau@apache.org>
Committed: Fri Apr 7 21:39:13 2017 +0200

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


http://git-wip-us.apache.org/repos/asf/tomee/blob/d508aba0/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 a574f59..7940cd4 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
@@ -30,6 +30,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;
@@ -68,6 +69,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")
@@ -164,7 +166,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