Archived

This forum has been archived. Please start a new discussion on GitHub.

Well known objects and Server objects unique naming issue?

When adding an object to its adapter in the Server code, what id should
the object be given so that it gets mapped to the "well known object"? Is it
supposed to match the object identity attribute while specifying the adapter
descriptor? If so, then how to handle multiple nodes mapping to these well know objects, since it seems when specifying multiple nodes, the object identities have to be unique.

Eg in the manual for the MP3 encoding example, all the objects specified
have a type ::MP3::EncoderFactory. However if there are more
than one nodes in the xml file, they have to be given unique Object identities,
say EncoderFactory1, EncoderFactory2...But what do I set the object identity
in the server code. Obviously I shouldn't be doing

adapter->add(object, communicator()->stringToIdentity("EncoderFactory1) );

I should be saying
adapter->add(object, communicator()->stringToIdentity("EncoderFactory) );

But that doesn't work...

Comments

  • solved

    The demo example showed how to use property attribute on the object block
    to solve this..