You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by ge...@apache.org on 2011/06/06 14:00:56 UTC

svn commit: r1132605 - /openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/InterceptorBindingBuilder.java

Author: genspring
Date: Mon Jun  6 12:00:56 2011
New Revision: 1132605

URL: http://svn.apache.org/viewvc?rev=1132605&view=rev
Log:
EJB31 4.5.8,  If the MDB instance has an ejbCreate method,
the container treats the ejbCreate method as the instance’s PostConstruct method,

Modified:
    openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/InterceptorBindingBuilder.java

Modified: openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/InterceptorBindingBuilder.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/InterceptorBindingBuilder.java?rev=1132605&r1=1132604&r2=1132605&view=diff
==============================================================================
--- openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/InterceptorBindingBuilder.java (original)
+++ openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/InterceptorBindingBuilder.java Mon Jun  6 12:00:56 2011
@@ -99,9 +99,10 @@ public class InterceptorBindingBuilder {
         
         
 
-        if (beanInfo instanceof StatelessBeanInfo) {
+        if (beanInfo instanceof StatelessBeanInfo || beanInfo instanceof MessageDrivenBeanInfo) {
             /*
-             * 4.3.10.2 If the stateless session bean instance has an ejbCreate method, 
+             * 4.3.10.2 and 4.5.8
+             * If the stateless session bean or MDB instance has an ejbCreate method, 
              * the container treats the ejbCreate method as the instance’s PostConstruct method,
              *  and, in this case, the PostConstruct annotation (or deployment descriptor metadata)
              *  can only be applied to the bean’s ejbCreate method.