DILLENSEGER Bruno FTRD/DTL wrote:
> DUMANT Bruno FTRD/DTL wrote:
> > DILLENSEGER Bruno FTRD/DTL wrote:
> > > Now the question is: is there a method somewhere in David to build an IOR from a
>host IP address/name and a port number? (that would help me automatically federate
>several CosNamings).
> > >
> > See in
>http://www.objectweb.org/jonathan/doc/apis/org/objectweb/david/libs/helpers/IORHelpers.html
> , the forgeIOR() method.
>
> OK, but how do I forge the key and rep_id?
> I guess the rep_id follow some CORBA specific rules (?)
The repository id is generated by the IDL compiler, and is accessible for each IDL
type through its Helper class.
> , but is there a way to force a key value when I create a server object (as a matter
>of fact, there is no need to provide a key when configuring the initial reference to
>the CosNaming)?
In the case of the Jonathan CosNaming, the adapter used is SOA (Single Object
Adapter), which means that no key is used. An empty array is thus appropriate. This is
also why you may retrieve a reference to a CosNaming by simply providing an IP
address and a port number, using the getNSDirectly method on
http://www.objectweb.org/jonathan/doc/apis/org/objectweb/david/libs/services/CosNaming/NSRetriever.html.
Bruno
--
*******************************************************************
Bruno Dumant
DTL/ASR
france telecom R&D
38-40 rue du g�n�ral Leclerc
92794 Issy Moulineaux Cedex 9
FRANCE
mailto:[EMAIL PROTECTED]
tel: +33 1 45 29 46 03
fax: +33 1 45 29 66 04
*******************************************************************