How to get to know the RepositoryId or ScopedName from an Corbaobject reference?

This is a discussion on How to get to know the RepositoryId or ScopedName from an Corbaobject reference? within the Object forums in Theory and Concepts category; Hello, I've gotten the object reference through CORBA::ORB::string_to_object(). And I would like to call the one of the following functions to get the InterfaceDef: Contained lookup_id(in RepositoryId search_id); or Contained lookup(in ScopedName search_name); How to get to know the RepositoryId (for example, IDL:ModuleName/ InterfaceName:1.0) or ScopedName (for example, ModuleName::InterfaceName) from the object reference? I'm using Orbix 3.3. Thanks....

Go Back   Application Development Forum > Theory and Concepts > Object

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 09-01-2008, 02:39 AM
LJ
Guest
 
Default How to get to know the RepositoryId or ScopedName from an Corbaobject reference?

Hello, I've gotten the object reference through
CORBA::ORB::string_to_object(). And I would like to call the one of
the following functions to get the InterfaceDef:

Contained lookup_id(in RepositoryId search_id);

or

Contained lookup(in ScopedName search_name);

How to get to know the RepositoryId (for example, IDL:ModuleName/
InterfaceName:1.0) or ScopedName (for example,
ModuleName::InterfaceName) from the object reference?

I'm using Orbix 3.3.

Thanks.
Reply With Quote
  #2  
Old 09-02-2008, 01:38 PM
Martin Murphy
Guest
 
Default Re: How to get to know the RepositoryId or ScopedName from an Corbaobject reference?

On Sep 1, 7:39*am, LJ <lingjie.m...@gmail.com> wrote:
> Hello, I've gotten the object reference through
> CORBA::ORB::string_to_object(). And I would like to call the one of
> the following functions to get the InterfaceDef:
>
> Contained lookup_id(in RepositoryId search_id);
>
> or
>
> Contained lookup(in ScopedName search_name);
>
> How to get to know the RepositoryId *(for example, IDL:ModuleName/
> InterfaceName:1.0) or ScopedName (for example,
> ModuleName::InterfaceName) from the object reference?
>
> I'm using Orbix 3.3.


I'm presuming this is C++, so you should have a read of the docs
on this:
http://www.iona.com/support/docs/orb...guide/IfR.html
Also there is a demo in $IONA_ROOT/demos/common/interfacerepository

To be honest though, hardly anyone uses this as in most use cases it
wasn't really necessary.

- M
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 12:18 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.