Exforsys

Online Training

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


Go Back   Exforsys > Programming Talk > Java

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-08-2007, 09:17 PM
Junior Member
 
Join Date: Jun 2007
Posts: 6
jyothi423 is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 12-11-2007, 01:42 PM
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
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.
__________________
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
Can a webapplication hav Entity beans and JDBC together be used ? jyothi423 Java 2 12-13-2007 07:34 AM


All times are GMT -4. The time now is 12:13 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.