This is an automated email from the ASF dual-hosted git repository.
rzo1 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomee.git
The following commit(s) were added to refs/heads/master by this push:
new 445619b1f7 Update exception message for MDB without an interface (#900)
445619b1f7 is described below
commit 445619b1f7d3286cc793b1009b6a3a0c64664d0b
Author: Brian Demers <[email protected]>
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 <[email protected]>
Co-authored-by: Richard Zowalla <[email protected]>
---
.../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 b2fcf8dfb3..dc283de15d 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) {