Exforsys
+ Reply to Thread
Results 1 to 3 of 3

Can a webapplication hav Entity beans and JDBC together be used ?

This is a discussion on Can a webapplication hav Entity beans and JDBC together be used ? within the Java forums, part of the Programming Talk category; JDBC and Entity beans both are DataAccess Mechanisms so can we use these two combinations / only one in 2 ...

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

    Can a webapplication hav Entity beans and JDBC together be used ?

    JDBC and Entity beans both are DataAccess Mechanisms so can we use these two combinations / only one in 2 needs to be used?
    What are the advantages of both ?


  2. #2
    vickyas400 is offline Junior Member Array
    Join Date
    Nov 2007
    Answers
    7

    jdbc and entity beans

    I guess you can .
    May be when you want yr application to connect to two different databases you can go for such a move.I believe Hibernate solves the above problem and may be the best possible solution in terms of performance too.
    Let me know if i dint catch up your question well ...





  3. #3
    amitky is offline J2EE Prof. Array
    Join Date
    Dec 2007
    Location
    Bangalore
    Answers
    7
    As we know that Entity Bean is built on JDBC. In other words Entity Bean uses JDBC for actual physical connection to Database. So when we are using Entity bean there is not need to use JDBC code directly. Added to this Entity bean gets support of container services like connection pooling, transaction management etc, which needs to be done through in case of JDBC.
    As we know that the JDBC provides 4 type of driver and Entity Bean uses the type 4 driver which is the most preferred driver so Entity bean is a best choice in applications which frequently access the DB.


    •    Sponsored Ads



Latest Article

Network Security Risk Assessment and Measurement

Read More...