Corba アプリケーションを開発しています。私の IDL インターフェイスは次のようになります。
interface Transaction {
???????? addResource(in TransactionResource resource);
};
クライアントがトランザクション参照オブジェクトの addResource メソッドを呼び出すと、Proxy.newProxyInstance(....) の戻り値をクライアントに返すことができるようになります。
addResource 実装の例:
public ?????? addResource(TransactionResource resource) {
// creation of a proxy.
java.lang.Object o = Proxy.newProxyInstance(ManageDemand.class.getClassLoader() , new Class[] {ManageDemand.class}, new MyInvocationHandler());
return o;
}
「o」をクライアントに返したいのですが、どうすればよいですか?
addResource() メソッドの戻り値の型は何ですか? org.omg.CORBA.Object ですか? または他のタイプ?