Help, unable to get data from database in different server...

Hello,

consider,

i have installed database in xxx.xxx.xxx.003

and my web server is on xxx.xxx.xxx.005

i have created JAR for applet, which i give in package field of <APPLET> tag..

which uses Database i can put it on database server if needed.

i tried with codebase but i didnt understand...need help..

[352 byte] By [N_i_Xa] at [2007-11-27 2:02:28]
# 1
You are not going to be able to access data on other computers at random . It would be a terrible security hole if, for instance, you could access the nuclear weapons design database on Los Alamos Scientific Laboratory computers.
ChuckBinga at 2007-7-12 1:43:54 > top of Java-index,Desktop,Core GUI APIs...
# 2
Okey, but what should be the solution, i have complete access to database server, and web server. what should be the location of applet and jar...
N_i_Xa at 2007-7-12 1:43:54 > top of Java-index,Desktop,Core GUI APIs...
# 3

You must sign your applet so you can make all the connections

you want.

Another solution, if you have access to the clients where the

applet will run, is to create a file named .java.policy in the

user's home with this instructions:

grant {

permission java.net.SocketPermission "*", "accept, connect, listen,resolve";

};

Regards

CanapaGa at 2007-7-12 1:43:54 > top of Java-index,Desktop,Core GUI APIs...
# 4

> You must sign your applet so you can make all the

> connections

> you want.

This requires that the user (the client?) accept the signed applet. You will not be able to access the files of the client, however. And, if there isn't someone to accept the signed applet, it won't even run.

>

> Another solution, if you have access to the clients

> where the

> applet will run, is to create a file named

> .java.policy in the

> user's home with this instructions:

>

> grant {

> permission java.net.SocketPermission "*", "accept,

> , connect, listen,resolve";

> };

>

>

> Regards

Without modification to the computer that contains the database, you will not be able to acces the database, since the applet's origin is a different computer.

ChuckBinga at 2007-7-12 1:43:54 > top of Java-index,Desktop,Core GUI APIs...