0 Replies Latest reply on Mar 5, 2013 1:10 PM by kkkppp

    [Jboss 7.1.3] EJB 2.1 Entity bean ejbLoad invoked between ejbCreate and ejbPostCreate

    kkkppp Newbie

      I noticed strange behaviour while testing ported code (from Jboss 4), ejbLoad is called when ejbCreate just finished, but before ejbPostCreate is invoked:

       

        [junit] at com.supportwizard.rules2.ejb.SWRuleBMP.ejbLoad(SWRuleBMP.java:331)
        [junit] at org.jboss.as.ejb3.component.InvokeMethodOnTargetInterceptor.processInvocation(InvokeMethodOnTargetInterceptor.java:57)
        [junit] at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
        [junit] at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
        [junit] at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
        [junit] at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
        [junit] at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
        [junit] at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)
        [junit] at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
        [junit] at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
        [junit] at org.jboss.as.ejb3.component.entity.EntityBeanComponentInstance.associate(EntityBeanComponentInstance.java:154)
        [junit] at org.jboss.as.ejb3.component.entity.interceptors.EntityBeanEjbCreateMethodInterceptorFactory$1.processInvocation(EntityBeanEjbCreateMethodInterceptorFactory.java:87)
        [junit] at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
        [junit] at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
        [junit] at org.jboss.as.ee.component.ViewService$DefaultViewInstanceFactory.createViewInstance(ViewService.java:280)
        [junit] at org.jboss.as.ee.component.ViewService$View.createInstance(ViewService.java:157)
        [junit] at org.jboss.as.ejb3.component.entity.interceptors.EntityBeanHomeCreateInterceptorFactory$1.processInvocation(EntityBeanHomeCreateInterceptorFactory.java:76)
        [junit] at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
        [junit] at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:226)
        [junit] at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:302)
        [junit] at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:188)
        [junit] at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
        [junit] at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
        [junit] at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
        [junit] at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:42)
        [junit] at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
        [junit] at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59)
        [junit] at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
        [junit] at org.jboss.as.ejb3.component.interceptors.EjbExceptionTransformingInterceptorFactories$2.processInvocation(EjbExceptionTransformingInterceptorFactories.java:89)
        [junit] at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
        [junit] at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
        [junit] at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
        [junit] at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:32)
        [junit] at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
        [junit] at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)
        [junit] at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
        [junit] at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
        [junit] at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165)
        [junit] at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:181)
        [junit] at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
        [junit] at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
        [junit] at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:72)
        [junit] at com.supportwizard.rules2.interfaces.SWRuleLocalHome$$$view1366.create(Unknown Source)

       

      According to spec 8.5.1, there is no additional ejbLoad between them. Do I submit a bug or there is some explanation?