• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

database connectivity

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
could it possible that i directly (not through servlet) connect my applet to the database ?
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, yes and no. Nothing stops you from using JDBC in your applet and accessing a database on the same server - nothing, that is, except the firewalls that are likely to sit between the user and your database server. Which means that you really need to tunnel it over HTTP, which in turn is likely to make you go full circle back to servlets again...
Take a look at javax.sql.WebRowSet, part of the JDBC 2.0 optional extensions.
- Peter
 
Sean MacLean
author
Ranch Hand
Posts: 621
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"dwivedi_sachin5",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please log in with a new name which meets the requirements.
Thanks.
Sean
 
ashwin020
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes..u can connect ur applet directly to ur database but the high security model that java has is likely to cause some problems during run time. I guess itz okay to connect ur applet to ur database prvided the applet is fairly simple/elementary though I'd recommend the use of servlets!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic