You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by Gianny Damour <gi...@optusnet.com.au> on 2005/03/22 11:33:08 UTC
remote class loading for deployment
Hi,
Just a quick memo to summarize how to enable remote class loading during
deployment.
In a standard geronimo package:
1. update the policy file var/security/deployer.policy in order to
reflect your execution environment. Basically, have a look to the lines
following the "configure the reflect your execution environment" message
and configure the relevant values;
2. start the org/apache/geronimo/RemoteClassLoadingDeployer
configuration. This configuration exports the ClassLoader of the
org/apache/geronimo/Server and org/apache/geronimo/RuntimeDeployer
configurations. Basically, the classes of these two configurations are
now available from the
http://127.0.0.1:8080/HTTPClassLoaderServer[org.apache.geronimo.Server]
and
http://127.0.0.1:8080/HTTPClassLoaderServer[org.apache.geronimo.RuntimeDeployer]
URLs.
For instance, this URL:
http://127.0.0.1:8080/HTTPClassLoaderServer[org.apache.geronimo.Server]/org/tranql/ql/QueryException.class
download the byte code of org.tranql.ql.QueryException.
3. use the deployer with a security manager installed and provide the
previous policy file;
java -Djava.security.manager
-Djava.security.policy=var/security/deployer.policy -jar
bin/deployer.jar <standard switches and parameters>
I think that the same approach can be leveraged for integration with the
OpenEJB protocol.
Thanks,
Gianny