Are you sure dain didn't fix this earlier this week? I'm not sure his
solution is optimal, but I thought it was sufficient.
thanks
david jencks
On Sep 9, 2004, at 5:53 PM, Gianny Damour wrote:
Resent.
On 8/09/2004 9:49 PM, Gianny Damour wrote:
Hi,
The current order of the Interceptor chain returned by the
EntityInstanceInterceptor does not allow to use the ENC in the
context of the ejbLoad method. As depicted by the following stack
trace (from Pet Store and provided by Rajesh), the
ComponentContextInterceptor is not traversed prior to reach the
ejbLoad method.
14:45:22,914 WARN [SystemExceptionInterceptor] TheSignOn
javax.ejb.EJBException: SignOnDAOFactory.getDAO: NamingException
while getting DAO type :
SignonDAOClass
at
com.sun.j2ee.blueprints.signon.ejb.SignOnEJB.ejbLoad(SignOnEJB.java:
117)
at
org.openejb.entity.dispatch.EJBLoadOperation.doOperation(EJBLoadOperat
ion.java:75)
at
org.openejb.dispatch.AbstractSpecificMethodOperation.invoke(AbstractSp
ecificMethodOperation.java:79)
at
org.openejb.entity.dispatch.EJBLoadOperation.execute(EJBLoadOperation.
java:71)
at
org.openejb.dispatch.DispatchInterceptor.invoke(DispatchInterceptor.ja
va:72)
at
org.openejb.entity.EntityInstanceContext.associate(EntityInstanceConte
xt.java:122)
at
org.apache.geronimo.transaction.context.TransactionContext.associate(T
ransactionContext.java:77)
at
org.openejb.entity.EntityInstanceInterceptor.invoke(EntityInstanceInte
rceptor.java:102)
at
org.openejb.transaction.ContainerPolicy$TxRequired.invoke(ContainerPol
icy.java:123)
at
org.openejb.transaction.TransactionContextInterceptor.invoke(Transacti
onContextInterceptor.java:80)
at
org.openejb.SystemExceptionInterceptor.invoke(SystemExceptionIntercept
or.java:82)
at
org.openejb.GenericEJBContainer.invoke(GenericEJBContainer.java:191)
at
org.openejb.proxy.EJBMethodInterceptor.invoke(EJBMethodInterceptor.jav
a:177)
at
org.openejb.proxy.SerializationHanlder.invoke(SerializationHanlder.jav
a:85)
at
org.openejb.proxy.EJBMethodInterceptor.intercept(EJBMethodInterceptor.
java:145)
at
org.openejb.proxy.EntityEJBObject$$EnhancerByCGLIB$$d24dbfd3.getDetail
s(<generated>)
at
com.sun.j2ee.blueprints.petstore.control.ejb.SigninHandler.perform(Sig
ninHandler.java:46)
Is it possible to insert the ComponentContextInterceptor just after
the SystemExceptionInterceptor for the various InterceptorBuilder?
Thanks,
Gianny