// set the service name
exporter.setServiceName(this.objectName);
// set the service interface
exporter.setServiceInterface(MethodInvoker.class);
// create a pluggable exporter
PluggableRemoteInvocationExecutor executor = new PluggableRemoteInvocationExecutor();
// set the executor in the exporter
exporter.setRemoteInvocationExecutor(executor);
// set the RMI registry host
//PM:31/1/08 host is not needed, localhost is the default
//exporter.setRegistryHost(System.getProperty("RMIregistry.host"));