Exforsys

Online Training

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 needs ...


Go Back   Exforsys > Programming Talk > Java

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-06-2007, 02:11 AM
Junior Member
 
Join Date: Jun 2007
Posts: 6
jyothi423 is on a distinguished road
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 ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 11-16-2007, 02:41 AM
Junior Member
 
Join Date: Nov 2007
Posts: 8
vickyas400 is on a distinguished road
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 ...


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 12-13-2007, 07:34 AM
amitky's Avatar
J2EE Prof.
 
Join Date: Dec 2007
Location: Bangalore
Posts: 7
amitky is on a distinguished road
Send a message via MSN to amitky Send a message via Yahoo to amitky
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.
__________________
Amit
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Entity and JDBC jyothi423 Java 1 12-11-2007 01:42 PM


All times are GMT -4. The time now is 12:45 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2004 - 2007 Exforsys Inc. All rights reserved.