|
Page Created :
SM :
How do I configure an endpoint resolver policy
How do I configure an endpoint resolver policy has been created by Lars Heinemann (Jul 03, 2008). Content:How do I configure an endpoint resolver policyWhat policies are available and what do they doThe available policies are located in the following package: org.apache.servicemix.jbi.resolver. There you will find at this time 3 policies: FirstChoicePolicyThis policy is the default policy of ServiceMix. It always chooses the first endpoint in a list of available endpoints. RandomChoicePolicyThis policy chooses an endpoint randomly from a list of available endpoints. ServiceRoundRobinPolicyThis policy will apply the RoundRobin logic for choosing an endpoint. On a list of available endpoints each message will Where do I configure which policy to useThe configuration is done inside the servicemix.xml file. It is located in the conf folder of your ServiceMix installation.
Example setup for Service Round Robin Policyconf/servicemix.xml ... </sm:container> <bean factory-method="getBroker" factory-bean="jbi"> <property name="defaultServiceChooser"> <bean class="org.apache.servicemix.jbi.resolver.ServiceRoundRobinPolicy" /> </property> </bean> <audit:jdbcAuditor container="#jbi" autoStart="false"> ... |
Unsubscribe or edit your notifications preferences
