geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gianny Damour <gianny.dam...@optusnet.com.au>
Subject remote class loading for deployment
Date Tue, 22 Mar 2005 10:33:08 GMT
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

Mime
View raw message