bonjour,
je suis en train de faire migrer une archi client serveur corba ou on faisait un copier coller de l'ior du serveur sur le client vers la meme appli mais passant automatiquement par un Naming service.
environnement : TAO, Corba C++ pour le serveur et corbascript pour le client.
je me suis rendu compte que mon serveur ne fonctionnait pas. Il se pose un pb du fait que le service de nommage est utilisé sans multicast . Je vous mais le message d'erreur à l'execution:
multicast_query: unable to accept: Connection timed out
multicast discovery of NameService failed.
Specify -m 1 when starting Naming_Service,
or see http://www.theaceorb.com/faq/#115
for using NameService without multicast.
(26192|1024) EXCEPTION, Exception caught:
user exception, ID 'IDL:omg.org/CORBA/ORB/InvalidName:1.0'
d'apres la faq cité:
Here are some common ways to use the -ORBInitRef option to locate the Naming Service server (where bart is just an example host name):
# Store the IOR of the Naming Service server's root naming context in a file:
Naming_Service -m 0 -o /tmp/ns.ior
client -ORBInitRef NameService=file:///tmp/ns.ior
# Specify an IIOP endpoint when you start the Naming Service server (using TAO 1.1.10 and later):
You can also use the NameServiceIOR environment variable to achieve the same effect. Here, we show what it might look like on a UNIX or UNIX-like system using the bash shell:
Naming_Service -m 0 -ORBEndpoint iiop://bart:2809
export NameServiceIOR=corbaloc:iiop:bart:2809/NameService
Now, when your client calls resolve_initial_references("NameService"), no multicast will be performed. The -m 0 option turns multicast off in the Naming_Service server. This is the default in TAO versions 1.1.17 and later. Earlier versions defaulted to multicast enabled in the server.
et moi j'ai la version tao 1.3.1
- quelqu'un aurait il un exemple de client en corba script pour moi pour aller chercher l'ior chez le naming service.
voila j'attends vos conseils.
jay





Répondre avec citation


Partager