> -----Ursprüngliche Nachricht-----
> Von: Simon Nash [mailto:n...@apache.org]
> Gesendet: Freitag, 26. Juni 2009 18:54
> An: user@tuscany.apache.org
> Betreff: Re: warnings using callbacks
> 
> Simon Laws wrote:
> > Hi Martin

Hi Simon,

> >
> > WARNUNG: Reference not found for component reference: Component =
> > UpdateServiceImplComp Reference = UpdateRegistry
> >
> > Means that there is a reference in a composite whose name doesn't
> > match a reference in the component implementation. This is
> missleading
> > here though I think because it's complaining about the automatically
> > created callback reference that takes the name of the service for
> > which it is the callback reference. Please raise a JIRA for this.
> >
> This works OK in other examples, so I have a suspicion that the
> problem is associated with using the domain manager to start the node.
> My guess is that the domain manager is adding an extra reference
> to the runtime composite that it sends to the node.  The domain manager
> should not do this, but should leave it to the node to create the
> extra reference representing the callback.  We can look into this
> as part of the JIRA investigation.
> 

In addition:
For the clients I got the warnings
WARNUNG: Service not found for component service: Component = 
UpdateListenerImplCompHostA Service = updateRegistry
WARNUNG: Skipping component service not defined in the component type: 
UpdateListenerImplCompHostA#updateRegistry

I guess this is the counterpart for the above warning.
If necessary how can I open a JIRA ?


> > WARNUNG: Multiple bindings with the same name for a service: Binding
> =
> > UpdateRegistry Service =UpdateRegistry Binding = {2}
> >
> > Means there are multiple bindings with no name on the service
> > "UpdateRegistry". Again this is a little strange. I don't know why it
> > would be adding another binding in this case. The error message is
> > also very strange. Can you add this to the JIRA also and we'll take a
> > look at it.
> >
> The service has a forward <binding.ws/> and a callback <binding.ws/>.
> These have no "name=" attribute, so they both default to the name of
> the service.  SCA doesn't permit two bindings with the same name, and
> this is why you get the warning.  The {2} in the message is a bug in
> the 1.3.1 message template, and has been fixed in the latest code.
> 
> Tuscany is doing the right thing by producing the warning.  The
> solution
> is to change the service callback binding to something like
> <binding.ws name="UpdateRegistryCallback"/>.

After doing so I got the warning
WARNUNG: Multiple bindings with the same name for a reference: Binding = 
updateRegistry Reference = updateRegistry Binding = {2}
so I did the same for the callback binding of the reference
and the warnings disappeared.

Thanks.


> 
>    Simon N.
> 
> > Regards
> >
> > Simon
> >
> >
> 
Martin

Reply via email to