This is an automated email from the ASF dual-hosted git repository.

jgallimore pushed a commit to branch tomee-7.0.x
in repository https://gitbox.apache.org/repos/asf/tomee.git


The following commit(s) were added to refs/heads/tomee-7.0.x by this push:
     new 7badaad  Remove change committed in error
7badaad is described below

commit 7badaadc45e80485e6678c95e59f5b7ddedcf718
Author: Jonathan Gallimore <[email protected]>
AuthorDate: Mon Jul 13 13:54:11 2020 +0100

    Remove change committed in error
---
 .../simple-mdb/src/main/java/org/superbiz/mdb/ChatBean.java   | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/examples/simple-mdb/src/main/java/org/superbiz/mdb/ChatBean.java 
b/examples/simple-mdb/src/main/java/org/superbiz/mdb/ChatBean.java
index dd04ee5..346ca3f 100644
--- a/examples/simple-mdb/src/main/java/org/superbiz/mdb/ChatBean.java
+++ b/examples/simple-mdb/src/main/java/org/superbiz/mdb/ChatBean.java
@@ -18,7 +18,6 @@
 package org.superbiz.mdb;
 
 import javax.annotation.Resource;
-import javax.ejb.ActivationConfigProperty;
 import javax.ejb.MessageDriven;
 import javax.jms.Connection;
 import javax.jms.ConnectionFactory;
@@ -31,10 +30,7 @@ import javax.jms.Queue;
 import javax.jms.Session;
 import javax.jms.TextMessage;
 
-@MessageDriven(activationConfig = {
-        @ActivationConfigProperty(propertyName = "destination", propertyValue 
= "TEST"),
-        @ActivationConfigProperty(propertyName = "destinationType", 
propertyValue = "javax.jms.Queue")
-})
+@MessageDriven
 public class ChatBean implements MessageListener {
 
     @Resource
@@ -62,10 +58,7 @@ public class ChatBean implements MessageListener {
                 respond("Once every day, as usual.");
 
             }
-
-            System.out.println("Hello");
-            Thread.sleep(5000);
-        } catch (JMSException | InterruptedException e) {
+        } catch (JMSException e) {
             throw new IllegalStateException(e);
         }
     }

Reply via email to