Re: javaspace error - transaction
SUBSCRIBE JAVASPACES-USERS Anonymous <[email protected]> Wed, 8 Apr 2009 01:41:08 -0600
| Newsgroups | gmane.comp.java.sun.javaspaces |
|---|---|
| Message-ID | <LISTSERV%[email protected]> |
Thank you sir for all your replies...
I got the solution..
I added the security manager by using the following code in main program.=
..
if(System.getSecurityManager()=3D=3Dnull){
=09=09=09 System.setSecurityManager(new RMISecurityManager());
=09=09 }
Then to run the client program using the command prompt. I used the
following code:
java -Djava.security.main -Djava.security.policy=3Dmytree.policy -cp
"c:\ProgramFiles\jini2_1\lib\jsk-lib.jar";"c:\ProgramFiles\jini2_1\lib\ji=
ni-core.jar";"c:\ProgramFiles\jini2_1\lib\jini-ext.jar";"c:\ProgramFiles\=
jini2_1\lib\jsk-resources.jar";"c:\ProgramFiles\jini2_1\lib\jsk-platform.=
jar";
myxml
where mytree.policy is a policy file having the following permission:
grant {
permission java.security.AllPermission;
};
To run jini2_1, I used the following command line
java -Djava security.policy=3Djsk-all.policy -jar "C:\Program
Files\jini2_1\lib\start.jar" startAll.config
Make sure that while running client and jini2_1 services the path for pol=
icy
files should be specified correctly...
Thanking you all again..
xxx
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff JAVASPACES-USERS". For general help, send email to
[email protected] and include in the body of the message "help".
To view past JAVASPACES-USERS postings, please see:
http://archives.java.sun.com/archives/javaspaces-users.html