servicemix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marek Kociecki (JIRA)" <>
Subject [jira] Created: (SM-1192) Servicemix-core : Default Broker use mismatch filter
Date Mon, 07 Jan 2008 16:45:43 GMT
Servicemix-core : Default Broker use mismatch filter

                 Key: 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.

View raw message