void export() throws NoSuchObjectException, ExportException,
RemoteException, UnknownGroupException, ActivationException
{
synchronized (AbstractActivationGroup.class) {
if (state != CREATING) {
throw new ActivationException("not called from createGroup");
}
if (refuseCalls) {
unexportObject(this, true);
refuseCalls = false;
}
proxy = (ActivationInstantiator) exporter.export(this);
try {
monitor = (ActivationMonitor) monPreparer.prepareProxy(
id.getSystem().activeGroup(id, proxy, incarnation));
state = CREATED;
} finally {
if (state != CREATED) {
exporter.unexport(true);
}
}
monPreparer = null;
}
}