On Wed, Apr 22, 2009 at 4:10 PM, Simon Laws <[email protected]> wrote:

> Currently we have this trick in our local client where a new $self$
> reference created. However It sounds ok to me to say that you can only
> talk to things with an SCA binding. If you want to talk to something
> without an sca binding then add binding.sca to the component in
> question or add a proxy component to the domain to allow you to do it.
> Does that make the client API too awkward to use?
>
> Simon
>

Or have the <service> outside of the component which then means
binding.sca is available as well:

   <service name="MyService" promote="Service1">
      <binding.jms />
   </service>

    <component name="Service1">
        <implementation.java
class="org.apache.tuscany.sca.binding.jms.ServiceImpl"/>
    </component>

I think one of the reasons most of the Tuscany examples have the
<service> within the component is that it saves a few characters (the
promote attribute) and up until this SCAClient came along it didn't
make much difference. Maybe we should revist that.

   ...ant

Reply via email to