wood burning stoves 2.0*
The moose likes Java in General and the fly likes database connectivity Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "database connectivity" Watch "database connectivity" New topic
Author

database connectivity

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
could it possible that i directly (not through servlet) connect my applet to the database ?
Peter den Haan
author
Ranch Hand

Joined: Apr 20, 2000
Posts: 3252
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

Joined: Nov 07, 2000
Posts: 621
"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

Joined: Oct 10, 2001
Posts: 4
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!
 
jQuery in Action, 2nd edition
 
subject: database connectivity
 
Similar Threads
Tech Word Game
Large Files
Sharing data between web app's
Shopping Cart - Part 2
share data