File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Applets and the fly likes Applet Database Proxy Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Applet Database Proxy Problem" Watch "Applet Database Proxy Problem" New topic
Author

Applet Database Proxy Problem

Joseph Mathew
Greenhorn

Joined: Apr 21, 2004
Posts: 19
Hello all,
I have an applet which connects to a MySQL database for user authentication. Currently I am doing on a local machine and all goes well and fine. But my problem is the same applet when accessed through a proxy the database connection wont happen. Can someone suggest a way to solve it. Or this problem is not solvable.
Thank you
joseph
Maulin Vasavada
Ranch Hand

Joined: Nov 04, 2001
Posts: 1871
Hi Joseph
JDBC won't work via Proxy. You would have to write some server side components (servlets) to communicate with the database and connect to that servlet to pass queries and get results back. Communication between applet and servlet would happend by HTTP Tunneling.
Regards
Maulin
 
jQuery in Action, 2nd edition
 
subject: Applet Database Proxy Problem