camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raman Gupta <>
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

On 11/07/2011 01:19 AM, Claus Ibsen wrote:
> Hi
> Check this FAQ
> 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 <> 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

View raw message