Exforsys
+ Reply to Thread
Results 1 to 2 of 2

Entity and JDBC

This is a discussion on Entity and JDBC within the Java forums, part of the Programming Talk category; Hi, all Shall we use Entity beans and JDBC for same project? or only one in two should be used? ...

  1. #1
    jyothi423 is offline Junior Member Array
    Join Date
    Jun 2007
    Answers
    6

    Entity and JDBC

    Hi, all
    Shall we use Entity beans and JDBC for same project?
    or only one in two should be used?
    And in what situations JDBC is used and in what situations Entity beans are used?

    I am confused of these two concepts kindly explain me ...


    Regards
    Jyothi


  2. #2
    amitky is offline J2EE Prof. Array
    Join Date
    Dec 2007
    Location
    Bangalore
    Answers
    7

    Hi

    Hi,
    Entity Bean is high end Persistence technology. Where as JDBC is a DB connectivity API. If you are aware of the 4 types of driver, Entity bean uses Thin (Type 4) driver for DB connection. In normal JDBC application manually transactions & security needs to be maintained. But using Entity Bean we can leave this work on EJB container which provides container services. This also increase the performance of handling database record as the server can cache the frequently accessed records.
    As I mentioned earlier JDBC is DB connectivity technology which is used in Entity bean also but isolated in the configuration.


Latest Article

Network Security Risk Assessment and Measurement

Read More...