3 Replies Latest reply on Oct 14, 2005 5:53 AM by Antoni Reus

    Lazy stateless session creation and ejbCreate CreateExceptio

    Scott Stark Master

      I'm looking into a stateless session instance creation issue when strict locking is enabled, and I see that we really do not handle the propagation of CreateExceptions thrown from ejbCreate correctly due to the delay of the instance creation until a remote method invocation. The problem this causes is that a CreateException is an application exception that when thrown during a business method invocation results in an UndeclaredThrowableException due to an undeclared checked exception being thrown from the reflected method invocation.

      We really do need to be obtaining an instance in the StatelessSessionInstanceInterceptor invokeHome method to ensure that we are not creating unusable bean proxies due to delaying the ejbCreate call until the business method invocation.