Discussions

EJB design: Advantages of using EJB's over Servlet based JDBC

  1. Advantages of using EJB's over Servlet based JDBC (3 messages)

    Hello All,
    Can anybody tell me the advantages of using EJB's over servlet based JDBC calls.??

    Alok
  2. Transactional support in the EJB container is one!

    /Tomas
  3. - Transactions
    - Business logic is in a re-usable component on the server, so you can easily re-use it in other webapps, or in other client types (e.g. PDA, Swing client)
    - Entity Beans for Container Managed Persistence
  4. Thanx for the reply. I have one more problem I want to do File reading and writting operations to do in addition to the Database reading and writting. I want to achive this things in one operation. Now I would like to ask the gorup if I can use a servlet or EJB work on this.

    Please guide me with this.

    Alok Garg