I think you may also avoid the use of IOR file by specifying the port 
where the CosNaming server is to run
(-port xxx)

and using the following properties :
david.CosNaming.default_method=0
david.CosNaming.default_host=hostname
david.CosNaming.default_port=xxxx

that you may set(as says Bruno) either in the jonathan.prop file or
using -D option :
java -Ddavid.CosNaming.default_method=0
-Ddavid.CosNaming.default_host=hostname... MyServer

Anne


> -----Message d'origine-----
> De : DILLENSEGER Bruno FTRD/DTL
> [mailto:[EMAIL PROTECTED]]
> Envoye : jeudi 5 octobre 2000 10:25
> A : OLIVE Vincent FTRD/DTL
> Cc : '[EMAIL PROTECTED]'
> Objet : Re: Application without IOR file
> 
> 
> OLIVE Vincent FTRD/DTL wrote:
> > 
> > I Would like to develop a program (Server/Client) using 
> Jonathan (DAVID
> > personnality) but without using IOR file.
> 
> I guess you are worrying about finding the "initial 
> reference" to the CosNaming.
> If you don't have acces to the file system where the 
> CosNaming IOR file is written, then you should change 2 
> properties in file jonathan.prop, in order to get the 
> CosNaming IOR through HTTP :
> 
> david.CosNaming.default_method=1
> david.CosNaming.default_url=http://myWebServer/webPath/cos-ns.ior
> 
> Of course, you have to
> - run a web server on the machine where the CosNaming is running ;
> - use option "-file filePath/cos-ns.ior" when running the 
> CosNaming in order to produce the CosNaming IOR file (in the 
> right place regarding your web server configuration).
> 
> > I Know my name server address and my Server address, how can  I do ?
> 
> As far as I know, configuring the default reference to the 
> CosNaming by setting the server IP address and port number is 
> not supported by David (unless any recent change or 
> workaround exists?). This is not a portable manner, since 
> IORs contain an "arbitrary" object key that is not 
> predictable in the general case.
> 
> > I think there is something to do with the values of 
> parameters (option -D of
> > java) or with the values of properties which are given 
> before running the
> > client ?
> 
> You may setup jonathan/David via -D options to override 
> jonathan.prop properties.
> 
> > Or perhaps, I must change something in the code of David ?
> 
> You, daring wizard! ;o)
> 
> -- Bruno.
> ___________________________________________________
>  Dr. Bruno DILLENSEGER - France Telecom R&D (CNET)
>  Distributed   Systems   Architecture   Department
>  phone: +33 4 76 76 41 46,  fax: +33 4 76 76 45 57
>  e-mail      [EMAIL PROTECTED]
>  web URL       http://bruno.dillenseger.online.fr/
> ____________________________________________________
> 

Reply via email to