My IDL looks like :
interface TransactionResource {
void prepare() raises (NotPreparedException);
void commit() raises(TransactionException);
void rollback() raises(TransactionException);
};
When i implement the TransactionResourceImpl, I implement an other Java interface "ManageDemand" like this:
public class TransactionResourceImpl extends TransactionResourcePOA implements ManageDemand {
// In this class, I redefine TransactionResource methods, and ManageDemand methods.
}
When I send this object TransactionResourceImpl to client, he can just use the TransactionResource methods and not ManageDemand methods.
I tried to use the reflexion to invoke ManageDemand methods, but it's not possible.
How can the client invoke ManageDemand methods, on the TransactionResourceImpl distributed reference?
It is not possible. You'll have to add those methods to the IDL and implement them as you would any other CORBA object.