This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes JDBC and the fly likes data connection model Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "data connection model" Watch "data connection model" New topic
Author

data connection model

Hanna Habashy
Ranch Hand

Joined: Aug 20, 2003
Posts: 532
hi:
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
Bartender

Joined: Oct 29, 2001
Posts: 8935
    
    9

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.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Hanna Habashy
Ranch Hand

Joined: Aug 20, 2003
Posts: 532
Thanks Joe:
I realy appreciate your help.
 
Consider Paul's rocket mass heater.
 
subject: data connection model