Session Facade + DAO


EJB design: Session Facade + DAO

  1. Session Facade + DAO (1 messages)

    Someone hava an example code of how to use a session facade pattern with DAOs, i don´t want to use Entity beans so I use the DAO pattern, but I want an example of how to use the session facade pattern with DAOs, thanks
  2. Session Facade + DAO[ Go to top ]

    SessionBean method

    public void addAuditTrial(AuditTrialDO ATDO) throws ...
      UtilDAO utilDAO = DAOFactory.getUtilDAO(); //interface type returned.
    And the impl class 'UtilDAOImpl' have this method storeAuditTrialData(ATDO). You could use normal JDBC or JDO/CMP to achive the persistance.

    hope this helps.