camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raman Gupta <rocketra...@gmail.com>
Subject Re: Dynamic layout input to flatpack component
Date Mon, 07 Nov 2011 07:00:20 GMT
In this case, I don't think dynamic URI is sufficient. I would need to
build the pzmap.xml file dynamically and provide it to the flatpack
endpoint, preferably as an injectable lookup bean that would implement
some interface like this:

interface LookupPzMap {
    Resource getPzMap(Message m);
}

The component could of course cache compiled templates using the
Resource as a key.

Raman Gupta
VIVO Systems
http://vivosys.com


On 11/07/2011 01:19 AM, Claus Ibsen wrote:
> Hi
> 
> Check this FAQ
> http://camel.apache.org/how-do-i-use-dynamic-uri-in-to.html
> 
> Would it not be possible to specify the flatpack pzmap file in the uri
> and then use recipient list, to have dynamic endpoints?
> 
> 
> On Mon, Nov 7, 2011 at 12:20 AM, Raman Gupta <rocketraman@gmail.com> wrote:
>> I'd like to use camel in a highly configurable application. As an
>> example, one component I'd like to use is the Flatpack component. The
>> layout (.pzmap.xml) information will be generated from user-entered
>> information stored in a database or other data structure, and this
>> lookup may vary depending on properties of the in message.
>>
>> AFAICT, the built-in flatpack component cannot do this. Is this kind
>> of requirement better implemented outside of camel?
>>
>> Cheers,
>> Raman
>>

Mime
View raw message