Manisha Kode wrote:
Hello All,
I have an applet which has JDBC connection to oracle DB. To be able to
run this applet with DB connection I need to make sure that
java.policy has following permissions
permission java.util.PropertyPermission "oracle.jdbc.J2EE13Compliant",
"read";
permission java.util.PropertyPermission
"oracle.jserver.version", "read";
I do not want to go to client machine to machine to make those changes
in java.policy as I am not sure who all will be accessing this applet.
Is there any way i can do it remotely....
If anyone has worked on this problem previously or if anyone has any
idea about how to tackle it.. I would really appreciate the help.
You'll probably have to sign the applet. See below for some links (you
will want to use the "Sun Plugin 1.3+ RSA Plug-in Style" signing scheme):
http://mindprod.com/jgloss/signedapplets.html
However, it's probably not such a great idea for an applet to be
connecting directly to a database in any case, unless this is some
low-bandwidth, low-usage, highly controlled intranet application. I
would suggest making some kind of server application that talks to the
database, and then have the applet talk to the server. This allows you
to do load balancing, manage all your DAOs on the server, put all your
business logic on the server, not expose your database to random
intruders, etc. Web services might be a nice way of managing the
interaction between the applet and the server. Of course, don't do this
if it's not needed in your case; but often applet -> database
communication is a bad idea.
- Eric
|