public Object invoke(RMIStub stub,
MethodDescriptor method,
Object[] args) throws Throwable {
// object types must bbe written in the context of the corba application server
// which properly write replaces our objects for corba
ApplicationServer oldApplicationServer = ServerFederation.getApplicationServer();
ServerFederation.setApplicationServer(corbaApplicationServer);
try {
// let the super class handle everything. We just need to wrap the context
return super.invoke(stub, method, args);
} finally {
ServerFederation.setApplicationServer(oldApplicationServer);
}
}
|