[jboss-dev-forums] [JBoss ESB Development] - Re: Dynamic Routing by code via HttpRouter without ConfigTree po
Tom Eicher
do-not-reply at jboss.com
Tue Feb 14 09:55:57 EST 2012
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&containerType=14&container=2032]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120214/13d4b851/attachment.html
More information about the jboss-dev-forums
mailing list