How do I customize the restrictions of which Java classes Flash Remoting can call in JRun 4?
As such, if you wish to allow clients to connect to your own Java classes, you can modify a policy file to expand the permissions granted. For example, to allow the gateway to access classes in the com.macromedia package, add the following line to the lib/jrun.policy file. This will open access to the package to all users, which is not necessarily a bad thing in the com.macromedia case (since it’s not a common package in our servers). // PERMISSIONS GRANTED TO EVERYONE grant { // users should narrow or expand on this as they see fit // to grant wide-open security access to all code, uncomment this line //permission java.security.AllPermission; // to grant clients access to classes in the jrun packages, uncomment this line //permission java.lang.RuntimePermission “accessClassInPackage.jrun”; // add this line permission java.lang.RuntimePermission “accessClassInPackage.com.macromedia”; //snipped } Currently, Java only allows package-level declarations.