Tom Eicher [
https://community.jboss.org/people/tomeicher] created the discussion
"Re: Dynamic Routing by code via HttpRouter without ConfigTree po"
To view the discussion, visit:
https://community.jboss.org/message/716543#716543
--------------------------------------------------------------
Be careful everybody, the original ConfigTree of your PipelineProcessor must not be
changed, since it must be reentrant / threadsafe.
I did something like
| | ConfigTree configTree = processorsConfigTree.cloneObj(); |
| | String endpointUrl = ... |
| | configTree.setAttribute("endpointUrl", endpointUrl); |
|
| HttpRouter r = new HttpRouter(configTree); |
|
| r.process(msg): |
and this has been working well for a few millions messages in the last years ;-)
Cheers, Tom.
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/716543#716543]
Start a new discussion in JBoss ESB Development at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]