Petter Reinholdtsen wrote:
>
> [Phil Dawes]
> > In order to help people get started with ORBit-C++, I've written a
> > small package with a helloworld and name service example.
>
> Sounds good. Could you make a simple object creation example, like
> the bank/account example of other ORBs?
>
> When I tried using ORBit C++, I was unable to get this right. I want
> to have a gatekeeper object returning server objects to the clients.
>
> Having a working example would help a lot. :-)
Hi Petter,
The 'everything' test (orbitcpp/test/everything) has a testFactory
interface which serves corba object references to other test servers. It
creates implementations of the other TestServers on the stack (they are
members of the TestFactory_impl class), and obtains transient object
references from them using the _this() method (which regesters the
implementation with the default poa and returns a reference). I think
this covers what you want - please reply if it doesnt.
I noticed that mico has the POA account example you mentioned. I'll see
if it I can get it working with orbitcpp tomorrow.
Cheers,
Phil
|