Re: what is the meaning of the ORBid in CORBA_ORB_Init()of orbit2
- From: Gilbert Fang <gilbert fang sun com>
- To: Frank Rehberger <Frank Rehberger web de>
- Cc: orbit <orbit-list gnome org>
- Subject: Re: what is the meaning of the ORBid in CORBA_ORB_Init()of orbit2
- Date: 29 Apr 2003 17:26:26 +0800
On Tue, 2003-04-29 at 16:20, Frank Rehberger wrote:
> Gilbert Fang wrote:
>
> >Hi, experts
> > The document said that ORBid is a name presenting a ORB
> >implementation. Then what is the real meaning of it when writing codes?
> >
> what document do you mean?
The following is from "TheCommonObject Request Broker: Architecture and
Specification: chapter 4.5.1"
// PIDL module CORBA {
typedef sequence <string> arg_list;
ORB ORB_init (inout arg_list argv, in ORBid orb_identifier);
};
The identifier for the ORB will be a name of type CORBA::ORBid. All
ORBid strings other than the empty string are allocated by ORB
administrators and are not managed by the OMG. ORB administration is the
responsibility of each ORB supplier. ORB suppliers may optionally
delegate this responsibility. ORBid strings other than the empty string
are intended to be used to uniquely identify each ORB used within the
same address space in a multi-ORB application. These special ORBid
strings are specific to each ORB implementation and the ORB
administrator is responsible for ensuring that the names are
unambiguous.
And also in
http://www.gnome.org/projects/ORBit2/orbit-docs/orbit/book1.html
there is a example "echo-client" program which includes a line:
http://www.gnome.org/projects/ORBit2/orbit-docs/orbit/x278.html#AEN334
orb = CORBA_ORB_init(&argc, argv, "orbit-local-orb", ev);
I wonder what is the use of "orbit-local-orb".
Do I have to use this string as the ORBid? or can I substitute it as
with another string , like "example" or "testing-orb"?
If I use "example-orb" as the ORBid, can I make it work with the
servant, wihch when initializing uses the "orbit-local-orb",
(*orb) = CORBA_ORB_init(argc_ptr, argv, "orbit-local-orb", ev);
Thanks a lot
gilbert
>
> > If I write a servant using "example" as a ORBid, then write a client
> >using "local-orb" as a ORBid, can it work? Then does that mean I have
> >two orbs even I only installed on orbit2 in my pc (rh8.0)?
> >
>
> This document might help to answer most questions:
> http://www.gnome.org/projects/ORBit2/orbit-docs/orbit/book1.html
>
> more documentation can be found at:
> http://www.gnome.org/projects/ORBit2/documentation.html
>
> Best regards, Frank
>
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]