I'm trying to get a servicemix endpoint chooser to work.  I tried to add it
as Guillaume previously suggested by adding this to the servicemix.xml

<bean factory-method="getBroker" factory-bean="jbi">
    <property name="defaultServiceChooser">
      <bean class="test.CustomEndpointPolicy" />
    </property>
  </bean>

Everything starts up correctly after I add it, but for some reason my policy
is never invoked.  I turned on debug and set a breakpoint and I don't see
it.  All I see when I refresh a web browser that is connecting to a
servicemix-http SU, is that my response toggles back and forth as if the
exchange gets load balanced among an SU that I have deployed on two
clustered instances, which is not what my policy does.  I also tried to set
the defaultServiceChooser property directly on the Secured Broker element
and that hasn't helped either.  Has anything changed in this regard with
Fuse ESB 3.4.0.4?  Also, if the default is first endpoint first policy, it's
strange that the ordering isn't consistent for where the exchange goes,
unless it's random on the ordering of the possible endpoints presented to
the chooser at routing time...

Ryan

Reply via email to