Hans C.J. Kruse
2001-05-16 09:20:22 UTC
Hello,
I am wrapping the Trader provided by JacORB to be useful in a CORBA
Component Model (like) implementation.
Since the Jacorb distribution does not contain much documentation
about it's Trader, I used the examples to create my wrapper code.
We now have our first naive wrapper ready. Besides some fine tuning
issues, I like to get some questions answered before we really start
using the 'CCM compliant' Trader component.
Usually you get the Trader's Lookup interface by something like:
[...]
private org.omg.CORBA.Object trader=null;
protected org.omg.CosTrading.Lookup lookup=null;
[...]
lookup=org.omg.CosTrading.LookupHelper.narrow(trader);
Getting the Register interface or the other interfaces can be done with
something like:
[...]
protected org.omg.CosTrading.Register register=null;
[...]
register=lookup.register_if();
Is there a good reason why code like the following does not work?
[...]
register=org.omg.CosTrading.RegisterHelper.narrow(trader);
[...]
As far as I can detect the ior produces by JacORB's trader software
points to it's Lookup interface.
Am I wrong?
yours sincerely,
Hans C.J. Kruse
I am wrapping the Trader provided by JacORB to be useful in a CORBA
Component Model (like) implementation.
Since the Jacorb distribution does not contain much documentation
about it's Trader, I used the examples to create my wrapper code.
We now have our first naive wrapper ready. Besides some fine tuning
issues, I like to get some questions answered before we really start
using the 'CCM compliant' Trader component.
Usually you get the Trader's Lookup interface by something like:
[...]
private org.omg.CORBA.Object trader=null;
protected org.omg.CosTrading.Lookup lookup=null;
[...]
lookup=org.omg.CosTrading.LookupHelper.narrow(trader);
Getting the Register interface or the other interfaces can be done with
something like:
[...]
protected org.omg.CosTrading.Register register=null;
[...]
register=lookup.register_if();
Is there a good reason why code like the following does not work?
[...]
register=org.omg.CosTrading.RegisterHelper.narrow(trader);
[...]
As far as I can detect the ior produces by JacORB's trader software
points to it's Lookup interface.
Am I wrong?
yours sincerely,
Hans C.J. Kruse