What happens in following scenario if error occurred in DStateless.method4()
or BSession.method2()
? I want that CStateless.method3()
and DStateless.method4()
share the same transaction.
Is it permitted to make such calls in EJB and CDI ?
ASession.method1() (calls)-> CStateless.method3() -> BSession.method2() -> DStateless.method4();
@SessionScoped
class ASession {
method1();
}
@SessionScoped
class BSession {
method2();
}
@Stateless
class CStateless {
method3();
}
@Stateless
class DStateless {
method4();
}