Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Security problem with Java Applet using Oracle Thin JDBC
Mirko,
I think you might want to read the section under /docs/guide/security/ in the JDK 1.2 javadoc. I believe what you need to do is request the right security privilege from the SecurityManager before you try to establish the connection.
I've never done it with the 1.2 Plug-in but I did it previously with the Netscape VM and I remember (vaguely) that I had to use a class from Netscape (that comes with the browser) called something like netscape.security.PrivilegeManager. You can dig up more info about that from http://devedge.netscape.com.
Good luck,
Alex.
www.talinda.com
MEB wrote:
> I am using the Oracle thin JDBC driver and the Java Swing 1.2 plug-in to
> connect to a database on a foreign machine.
> It works fine if the database is on the same machine as the server the
> applet is loaded from.
> But, if I try to connect to another machine I get a socket security
> exception.
> I have signed the applet's jar file and gave it "All permissions", but this
> seems to be not enough.
> However, trying to allow "Socket permission" does not make any difference,
> mayby I have the wrong syntax for the port (I tried sth like
> servername:1024-65000).
>
> Has someone solved the problem?
>
> Mirko
Received on Sat May 29 1999 - 23:37:54 CDT
![]() |
![]() |