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 JDBC and the fly likes JDBC remote connection failure 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 » Databases » JDBC
Bookmark "JDBC remote connection failure" Watch "JDBC remote connection failure" New topic

JDBC remote connection failure

cardwell cupp
Ranch Hand

Joined: Aug 16, 2001
Posts: 66
Hello all. I am writting an applet that connects to a informix database remotely. I have a jar file that contains the driver. When I run it in the applet viewer, it works just fine. When I try to host it and run it in a browser, it will not connect to the database! Does anybody have any idea why this wouldn't work?
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299

The database will have to reside on the same server that the applet resides on. So if that applet is downloaded from Web Server A then the Database must also reside on Web Server A. If this is not the case, then tell us more about your situation and maybe we can better help. Example, what error messages are you getting, code, etc.

GenRocket - Experts at Building Test Data
subject: JDBC remote connection failure
Similar Threads
connect JDBC
Database Connectivity
how to access database thru applet running in a browser????
using JDBC in applets - security exception
db access through applet