You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomee.apache.org by GitBox <gi...@apache.org> on 2022/07/07 07:20:16 UTC

[GitHub] [tomee] rzo1 commented on a diff in pull request #900: Update exception message for MDB without an interface

rzo1 commented on code in PR #900:
URL: https://github.com/apache/tomee/pull/900#discussion_r915541833


##########
container/openejb-core/src/main/java/org/apache/openejb/cdi/CdiEjbBean.java:
##########
@@ -250,7 +250,7 @@ protected T createEjb(final CreationalContext<T> creationalContext) {
             } 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() + ", is this is a @MessageDriven bean, maybe you shouldn't use a scope?");

Review Comment:
   Thanks @bdemers - you are right. MDB means `@MessageDriven` bean here. I think that the proposed change is valid and clarifies the error message.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@tomee.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org