Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

data connection model

 
Hanna Habashy
Ranch Hand
Posts: 532
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi:
Does any one know where I can find a good model for database access through a web application?
 
Joe Ess
Bartender
Posts: 9312
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Hanna Habashy
Ranch Hand
Posts: 532
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Joe:
I realy appreciate your help.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic