Results 1 to 2 of 2

Thread: Well known objects and Server objects unique naming issue?

  1. #1
    kishore is offline Registered User
    Name: Kishore Mulchandani
    Organization: Sony Pictures Imageworks
    Project: Color and Lighting - Distributed Rendering
    Join Date
    Mar 2007
    Location
    Los Angeles, CA
    Posts
    15

    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...

  2. #2
    kishore is offline Registered User
    Name: Kishore Mulchandani
    Organization: Sony Pictures Imageworks
    Project: Color and Lighting - Distributed Rendering
    Join Date
    Mar 2007
    Location
    Los Angeles, CA
    Posts
    15

    solved

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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Sequence of objects issue
    By Netmaster0000 in forum Help Center
    Replies: 1
    Last Post: 12-31-2008, 02:12 PM
  2. passing objects
    By nicole in forum Help Center
    Replies: 5
    Last Post: 02-12-2007, 09:12 PM
  3. Objects as argument ?
    By ChMeessen in forum Comments
    Replies: 2
    Last Post: 09-18-2003, 04:48 PM
  4. Objects and Proxies
    By ganzuoni in forum Help Center
    Replies: 1
    Last Post: 06-18-2003, 02:49 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •