Hi I have been experimenting with adding a binding, using the example supplied with tuscany 2.0.Beta2. All works fine when the binding is contained in a service element within the component, however when I try to add an external service element to promote the component, and move the binding to that external service element, it appears to be ignored.
<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912" xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.1" targetNamespace="http://itest" name="HelloWorldComposite"> <service name="HelloWorldService" promote="HelloWorldComponent" > <tuscany:binding.sample someAttr="bla" /> </service> <component name="HelloWorldComponent"> <implementation.java class="helloworld.HelloWorldImpl"/> <service name="HelloWorldService" /> </component> <component name="HelloWorldClient"> <implementation.java class="helloworld.HelloWorldClient"/> <reference name="ref" > <tuscany:binding.sample uri="HelloWorldComponent/HelloWorldService"/> </reference> </component> </composite> Found a similar problem mentioned here: http://www.mail-archive.com/[email protected]/msg01994.html Interestingly the reference binding provider is also not instantiated, so wondering whether this sample binding is only intended for use within a composite - i.e. because there is no service defined with the binding type, the reference is ignored? If so, possibly this is the underlying reason that the binding cannot be used for the external service? If so, what needs to be added to the binding to make it usable for external services? Not sure if this is a known issue, or whether I have something wrong with my binding, as there does not appear to be any examples in the 2.0.Beta2 distribution that uses a binding (e.g. binding.ws) in an external service element? Regards Gary
