THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
First we define the http component in spring XML. Yes we can use the same scheme name http that Camel otherwise will auto discover and create the component with default settings. What we need is to overrule this so we can set our options. In the sample below we set the max connection to 5 instead of the default of 2.TODO: snippet
Wiki Markup |
---|
{snippet:id=e1|lang=xml|url=camel/trunk/tests/camel-itest/src/test/resources/org/apache/camel/itest/http/HttpMaxConnectionPerHostTest-context.xml} |
And then we can just use it as we normally do in our routes: TOOD: snippet 2
Wiki Markup |
---|
{snippet:id=e2|lang=xml|url=camel/trunk/tests/camel-itest/src/test/resources/org/apache/camel/itest/http/HttpMaxConnectionPerHostTest-context.xml} |
Include Page | ||||
---|---|---|---|---|
|
...