You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by rz...@apache.org on 2022/07/14 07:23:50 UTC

[tomee] branch tomee-8.x updated: Update exception message for MDB without an interface (#900)

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

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


The following commit(s) were added to refs/heads/tomee-8.x by this push:
     new b58f20dfdd Update exception message for MDB without an interface (#900)
b58f20dfdd is described below

commit b58f20dfdd524bc1cae9e698a83eb714b6f521e6
Author: Brian Demers <br...@gmail.com>
AuthorDate: Thu Jul 14 03:21:56 2022 -0400

    Update exception message for MDB without an interface (#900)
    
    * Update exception message for MDB without an interface
    
    * Update container/openejb-core/src/main/java/org/apache/openejb/cdi/CdiEjbBean.java
    
    Co-authored-by: Brian Demers <bd...@apache.org>
    
    Co-authored-by: Richard Zowalla <13...@users.noreply.github.com>
    (cherry picked from commit 445619b1f7d3286cc793b1009b6a3a0c64664d0b)
---
 .../openejb-core/src/main/java/org/apache/openejb/cdi/CdiEjbBean.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/container/openejb-core/src/main/java/org/apache/openejb/cdi/CdiEjbBean.java b/container/openejb-core/src/main/java/org/apache/openejb/cdi/CdiEjbBean.java
index a67c5a46dd..0a888b3aba 100644
--- a/container/openejb-core/src/main/java/org/apache/openejb/cdi/CdiEjbBean.java
+++ b/container/openejb-core/src/main/java/org/apache/openejb/cdi/CdiEjbBean.java
@@ -250,7 +250,7 @@ public class CdiEjbBean<T> extends BaseEjbBean<T> implements InterceptedMarker,
             } else if (remote != null) {
                 instance = (T) remote.create();
             } else { // shouldn't be called for an MDB
-                throw new IllegalStateException("no interface to proxy for ejb " + beanContext.getEjbName() + ", is this is a MDB maybe you shouldn't use a scope?");
+                throw new IllegalStateException("No interface to proxy for ejb " + beanContext.getEjbName() + ", if this is a @MessageDriven bean, try not using a scope?");
             }
 
             if (isDependentAndStateful) {