JBoss Community

Re: Dynamic Routing by code via HttpRouter without ConfigTree po

created by Tom Eicher in JBoss ESB Development - View the full discussion

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

Start a new discussion in JBoss ESB Development at Community