Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Connecting DB with applets
Joined: Jun 22, 2009
Nov 24, 2009 00:39:12
I am new to
. I would like to connect my
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
Joined: Oct 21, 2008
Nov 24, 2009 02:45:31
Use the connecting
String dbUrl = "jdbc:mysql://your server name/your database name"; String dbClass = "com.mysql.jdbc.Driver";
Joined: Mar 22, 2005
Nov 25, 2009 08:31:58
If you're new to
(the Java API used to connect to DBs), then the Sun Java Tutorial will help:
. 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
is frowned upon. It might be OK for intranets, but don't do it over the Net.
Ping & DNS, my free Android app for network diagnostics
subject: Connecting DB with applets
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
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013