This content has been marked as final. Show 3 replies
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.