|
If you are NOT dynamically downloading the EJB stub, you need to make
sure that the generated stub for the EJB is available locally, i.e. in
the classpath.
If you ARE downloading the EJB stub dynamically, you need:
A) An RMISecurity Manager configured, as follows:
if (System.getSecurityManager() == null)
{
System.setSecurityManager(new RMISecurityManager());
}
B) Your client must also have sufficient access through the appropriate
socket.
C) You need to add file download permission in your client policy file,
as follows:
grant codebase someURL
{
permission java.io.FilePermission "/path/to/downloads", "read";
};
D) Then your client must be started as follows:
java -Djava.security.policy=java.policy com.yourpackage.yourclient
|