This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Applets and the fly likes Connecting DB with applets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Connecting DB with applets" Watch "Connecting DB with applets" New topic
Author

Connecting DB with applets

Mahesh Lohi
Ranch Hand

Joined: Jun 22, 2009
Posts: 150
Hi all,

I am new to java. I would like to connect my applet with the DB(mysql) . Is it posible. Please refer me a book that can give better understanding on how to develop a stand alone application s/w

Thank you in advance

Neeba Rebbaca
Ranch Hand

Joined: Oct 21, 2008
Posts: 151
Use the connecting string



Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41082
    
  43
If you're new to JDBC (the Java API used to connect to DBs), then the Sun Java Tutorial will help: http://java.sun.com/docs/books/tutorial/jdbc/index.html. You'll need to add the JDBC driver jar file to your applet tag using the "archive" attribute.

Note that for security reasons, the DB must be on the server that hosts the applet. Also for security reasons, using JDBC in applets is frowned upon. It might be OK for intranets, but don't do it over the Net.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Connecting DB with applets
 
Similar Threads
Prevent multiple concurrent logins from same user in clustered env
Login page security using Servlet
Connection pool problem
handle the Transaction on the DB side ?
MYSQL 5.0 Connection Time Out