R: [omniORB] use of create_object_with_id in omniORB
stefano bitossi
bitostef@katamail.com
Mon Mar 24 18:19:01 2003
> > and to resolve names with naming service.
>
> ??? The POA has nothing whatsoever to do with the naming service.
>
> > So it could cause a call to rebind and i should use resolve instead?
>
> I don't understand that question. The POA doesn't talk to the naming
> service at all. Can you explain (on the mailing list) what you are
> trying to do?
Sure, this the a piece of my source code :
ifstream prova;
prova.open("cliente.txt");
CORBA::String_var nom=CORBA::string_dup("");
CORBA::String_var pa=CORBA::string_dup("");
while(prova>>nom)
{
prova>>pa;
oid =PortableServer::string_to_ObjectId(nom);
CORBA::Object_var prova_ref=clientepoa->create_reference_with_id
(oid,"IDL:cliente:1.0");
CORBA::Boolean cltprova=bindnames(orb,prova_ref,"cliente",nom.in());
cout<<cltprova<<endl;
}
prova.close();
clientepoa has the following policies: persistent, user_id, non_retain,
use_servant_manager.
Regards
Stefano