TeamJava Forum

[ Read Responses | Post a New Response | Return to the Index ]
[ Previous | Previous in Thread | Next ]


Re: JDBC in applets

Posted by Bernard on Friday, 4 July 2003, at 6:07 a.m., in response to JDBC in applets, posted by NSriram on Sunday, 25 May 2003, at 2:03 p.m.

Sure, you can, but you have to tweak the security first, by editing the java.policy file on the server housing the database.
(Remind that the webserver and database server must be the same machine, otherwise oracle connection manager is required)
Depending on what your applet does, you'll have to add to java.policy something like:

grant
{
permission java.lang.RuntimePermission "accessClassInPackage.oracle.jdbc.driver.OracleDriver";
permission java.util.PropertyPermission "oracle.jserver.version", "read";
};

Read about the java security for more info/lines to add

Cheers,

Bernard


Responses


Post a New Response

Please select: Discussion Question Answer
Pulse Check - enter num: 1062424986

Your Name:

E-Mail Address:

Subject:

Message:


If you'd like to include a link to another page with your message,
please provide both the URL address and the title of the page:

Optional Link URL:

Optional Link Title:


If you'd like to have the option of deleting your post later,
please provide a password (CASE SENSITIVE!):

Password:



Password:

The TeamJava Forum is maintained with WebBBS 2.24.


TeamJavaHome | Ind. Registry | Co. Registry | Java Links
Jobs Listings Forum | TeamJava Books | Java FAQ Archives

AWN

Copyright © 1995-2003 Active Web Networks, all rights reserved.
(Note: We share no direct association with Sun Microsystems, Inc.)