Meaningless Drivel is fun!
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

database connectivity

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
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
Ranch Hand

Joined: Nov 07, 2000
Posts: 621
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at . 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.

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!
I agree. Here's the link:
subject: database connectivity
It's not a secret anymore!