You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Marek Kociecki (JIRA)" <ji...@apache.org> on 2008/01/07 17:45:43 UTC

[jira] Created: (SM-1192) Servicemix-core : Default Broker use mismatch filter

Servicemix-core : Default Broker use mismatch filter
----------------------------------------------------

                 Key: SM-1192
                 URL: https://issues.apache.org/activemq/browse/SM-1192
             Project: ServiceMix
          Issue Type: Bug
          Components: servicemix-core
    Affects Versions: 3.0
            Reporter: Marek Kociecki


CreateEndpointFilter should return ProducerComponentEndpointFilter for  Role.PROVIDER
and otherwise ConsumerComponentEndpointFilter 

Sample :
Assume that Component A (consumer) sends exchange to Comontent B(provider,consumer) which process this exchange to Component C(provider)

So Component B is trying to find (target) endpoint in Component C using createEndpointFilter(). 
Component B has PROVIDER Role that is why createEndpointFilter() return ConsumerComponentEndpointFilter witch is an instance Of Component A (consumer).
But Component A has no knowledge about target Endpoint and return null;

Conclusion :
Only Components B and C do have a knowlegde about target endpoint.

Tips :
This is really rarely case ,couse :
-usually consumer and provider components are the same
-some components(used as consumers) does have an overridden method isExchangeWithConsumerOkay() which simple return true,


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.