Serving DAOs as web service or EJB

Discussions

General J2EE: Serving DAOs as web service or EJB

  1. Serving DAOs as web service or EJB (1 messages)

    Hi,

    We are refactoring one of our apps. In the process we are planning to seperate Business Logic and DAOs that both are works in our Spring's context now. We think about two main solutions, one is convert our DAO classes to web services ( probably RESTful ) the other is serve DAOs with EJB.

    But we are not clear on pros and cons of both solutions. What are your opinions ? Thanks for all answers.

  2. I always recommend ws. Using WS technologies will enable your architecture for composition, interoperability and lots of other advantages.