Hi,

If you want to consume SCA services from outside the SCA domain, you probably need to access the services using the protocols used for the bindings. For example, use web services to access a SCA service configured with binding.ws.

If the client code is in the same address space as the node, you can use SCADomain.getService(serviceName) to get a proxy representing the service.

Thanks,
Raymond

--------------------------------------------------
From: "Hinde Bouziane" <[EMAIL PROTECTED]>
Sent: Wednesday, June 25, 2008 10:08 AM
To: <[email protected]>
Subject: get a reference to a domain from a remote program

Hi all,

In the context of a distributed application, I would like to find an existing domain from a program to be able to use services provided by components created in already launched nodes.
For more details:
1) I use the DomainManagerLauncher interface to launch a domain.
2) I use the node2-launcher module to launch nodes (in the same way as done in calculator-distributed). Let's suppose that one node contains a component A.
- Until now, I had no problem to starts nodes.
3) Now, from a program (that as a role of a client) I try to use a service provided by component A. For that, I want to find a reference to the domain created in 1) to asks for the wanted service.

I'm using the 1.2 distribution. I found the SCADomainFinder class that offers the getSCADomain operation in the node-api. It seems that this operation provides a way to find an existing domain, but seems also be not completely implemented (a todo comment ). Is it the case? or is the usage of this operation is not compatible with the usage of node2... modules? Otherwise, is there another way to find and get the reference to the domain?

Thank you for your help.
Regards,
Hinde

Reply via email to