You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tuscany.apache.org by Roberto Cappa <ca...@gmail.com> on 2009/08/20 14:07:39 UTC
Runtime change of a WS binding from Java code
Hi,
in my composite application I need to modify a webservice URL at runtime.
The reference is defined a .composite file with a default URL, but my
business logic needs to change it from Java code during runtime. I haven't
found any information about this in the documentation. I also tried to
obtain and change the URL with method exposed by SCADomain, but changes are
ignored by the engine. Can you help me?
Thank You.
Re: Runtime change of a WS binding from Java code
Posted by Simon Laws <si...@googlemail.com>.
Hi
The SCA philosophy is that deployment configuration, such as the
details of component wiring and endpoint URLs, is independent of
component implementation. So Tuscany/SCA hasn't been designed with the
ability to change reference URLs from within the business logic in
mind.
If you really wanted to do it we'd have to find a way of resetting the
reference in question. We tend to do quite a lot of configuration
processing up front so just resetting URL values in the model may not
be enough. Which version of the runtime are you using?
Regards
Simon