Referencing an external database from an Applet


I have developed a web-served applet that interfaces with a SQL database.  In the project definition phase, I made my customer aware of the limitations that applets have with regards to communication; specifically that their database and web server would need to be hosted on the same machine.  They agreed to that at the time... but now claim that their infrastructure won't allow the hosting of web servers and databases on the same machines.  Hence the applet won't function as-is.  Since the customer is always right... <sigh> ... I need to come up with a solution

I've read several of the threads related to the "signing" of applets, but am a bit confused.  How does one go about getting a digital certificate for an applet?  Once this certificate is obtained, how is it implemented?  Is there any installation / configuration required on the machines of the users who will be running the applet?  Are there any viable alternatives that won't require extensive re-writing of the applet?
MckenzmaAsked:
Who is Participating?
 
aozarovCommented:
0
 
aozarovCommented:
0
 
aozarovCommented:
> How does one go about getting a digital certificate for an applet?
You can self certify (and then ask your client to accept that certificate in his browser) or use a company like VeriSign to sign your public key.

> Is there any installation / configuration required on the machines of the users who will be running the applet?
If you you got the certificate from known party (like VeriSign) then the browser will accept it with by default.
If you are using unknown certificate (like self signed one) then the browser will ask the user whether to accept it or not (only once).
0
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

 
StillUnAwareCommented:
some more links, but the idea is the same - to leave java's sandbox, You must sign Your applet.

http://java.sun.com/products/plugin/1.2/docs/nsobjsigning.html
http://java.sun.com/security/signExample/
0
 
StillUnAwareCommented:
Quick and clear, the main link You should start from:

http://java.sun.com/docs/books/tutorial/security1.2/overview/index.html
0
 
objectsCommented:
>  Is there any installation / configuration required on the machines of the users who will be running the applet?

When the applet is loaded they will be prompted to accept the certificate and give full privileges to the applet.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.