> "circuit_breaker" wrote...
> I think it's a bit of both.
[quoted text clipped - 26 lines]
>
> // Bjorn A
"circuit_breaker" wrote...
> From the webserver the applet works fine using
> AppletViewer but not in Mozilla. I've installed the
> latest plug-in & JVM as well... Should I sign the
> applet to be able to run it on the web server itself?
If the database resides on the webserver, that wouldn't be necessary, but if
they are on different machines, yes.
> > > String url = "jdbc:mysql://localhost/Inventory";
1. Remember to change the url to another
address than localhost.
> > AFAIK the authorization/authentication in MySQL is
> > default set to access *only* from the own computer
> > (127.0.0.1)...
2. Remember to set the privileges in MySQL
so the database is accessible from "outside".
3. Consider another approach completely. There can
be other security issues of using an applet to
access the database, as the communication to get
the connection can be "sniffed", and then you're
wide open...
A common approach is to delegate the actual database connection to a
servlet, and to let the applet communicate with the servlet instead.
Or to implement the whole shabang in servlets instead...
// Bjorn A