
- Forum
- Programming Talk
- Java
- Can a webapplication hav Entity beans and JDBC together be used ?
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 ...
-
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 ?
-
11-16-2007, 01:41 AM #2
- 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 ...

-
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
«
Entity and JDBC
|
Jms
»

Reply With Quote





