0

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?

Saad Lamarti
  • 300
  • 1
  • 5
  • 15
  • You can't, by definition. The mechanism for exposing the remote methods is IDL. If it isn't in the IDL, it isn't exposed as a remote method. Your question doesn't make sense, – user207421 Dec 19 '13 at 02:32
  • Is that methods remote or local? – Makah Dec 19 '13 at 16:59

1 Answers1

2

It is not possible. You'll have to add those methods to the IDL and implement them as you would any other CORBA object.

Brian Kelly
  • 19,067
  • 4
  • 53
  • 55