File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes data connection model Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "data connection model" Watch "data connection model" New topic

data connection model

Hanna Habashy
Ranch Hand

Joined: Aug 20, 2003
Posts: 532
Does any one know where I can find a good model for database access through a web application?

SCJD 1.4<br />SCJP 1.4<br />-----------------------------------<br />"With regard to excellence, it is not enough to know, but we must try to have and use it.<br />" Aristotle
Joe Ess

Joined: Oct 29, 2001
Posts: 9189

There's probably as many models as there are programmers. At the enterprise-scale level you have Enterprise Java Beans. At a less complex/smaller scale level there's object-relational mapping tools like Hibernate which sit between your application and the database and handle the nasty work of persistence. It is also common to "roll your own" Data Access Objects to create a persistence layer between your application and the database. Then the simplest/least scalable level would be to have your jsp's or servlets directly access the database using JDBC. There's no substute for reading a lot and writing a lot of code when learning about web apps. I found the Oreilly Java Servlets and Java Server Pages books invaluable when starting out.

[How To Ask Questions On JavaRanch]
Hanna Habashy
Ranch Hand

Joined: Aug 20, 2003
Posts: 532
Thanks Joe:
I realy appreciate your help.
I agree. Here's the link:
subject: data connection model
It's not a secret anymore!