Announcement Announcement Module
No announcement yet.
Transaction issue in Facade + Service Layer Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Transaction issue in Facade + Service Layer

    In my application my sturcture is as:

    JSF Managed bean -->Business Delegate --> Service layer -->DAO Layer -->Database
    but to execute a complex business logic i have Facade and call squence become:

    JSF Managed bean -->Facade --> Service layer -->DAO Layer -->Database

    All of my service classes are marked Transactional as:
    public class DesignerServiceImp implements DesignerService{
    The method in my Facade has complex business rules and then update multiple tables thorugh calls to Servie methods. So i marked method in facade as @Transactional.

    Now i have mix of Transactioanl at Service Layer and Facade level. My Facade has service injected. The Transaction started at Facade method is not propagted to Service methods so RollBack is not performed in case of error.

  • #2
    Is your Facade a spring bean and is it in the same context as your transactional advice?