You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Jeroen Verhagen <je...@gmail.com> on 2009/11/25 23:19:37 UTC
property replacement in xbean files?
--
View this message in context: http://old.nabble.com/property-replacement-in-xbean-files--tp26521261p26521261.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: property replacement in xbean files?
Posted by Jeroen Verhagen <je...@gmail.com>.
Hi Maciek,
Maciek Prochniak wrote:
>
> Guess what you need is
> http://camel.apache.org/recipient-list.html ?
> servicemix-eip documentation doesn't mention this pattenrn,
> did you consider using camel instead?
>
Thanks for your response, I will consider using Camel instead. From what I
gathered from my evaluation it seems that Camel seems to be the more
advanced option for EIP so I will probably need it for other stuff too.
Thanks,
Jeroen
--
View this message in context: http://old.nabble.com/property-replacement-in-xbean-files--tp26521261p26570894.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: property replacement in xbean files?
Posted by Maciej Prochniak <mp...@touk.pl>.
Guess what you need is
http://camel.apache.org/recipient-list.html ?
servicemix-eip documentation doesn't mention this pattenrn,
did you consider using camel instead?
br,
maciek
On Wed, 2009-11-25 at 14:25 -0800, Jeroen Verhagen wrote:
> <Sorry, pressed enter to soon>
>
> Hi all,
>
> Is it possible to use properties coming from the normalized messages in
> xbean config files? For example in the config below:
>
> <eip:wire-tap service="tut:wiretap" endpoint="endpoint">
> <eip:target>
> <eip:exchange-target service="ex:service"/>
> </eip:target>
> <eip:inListener>
> <eip:exchange-target service="tut:file"
> endpoint="archive/${some.property}"/>
> </eip:inListener>
> </eip:wire-tap>
>
> Where ${some.property} would be replaced by the property some.property
> coming from the messages that would go through the flow.
>
> That would greatly simplify my xbean config files.
>
> Thanks for any help and regards,
>
> Jeroen
Re: property replacement in xbean files?
Posted by Jeroen Verhagen <je...@gmail.com>.
<Sorry, pressed enter to soon>
Hi all,
Is it possible to use properties coming from the normalized messages in
xbean config files? For example in the config below:
<eip:wire-tap service="tut:wiretap" endpoint="endpoint">
<eip:target>
<eip:exchange-target service="ex:service"/>
</eip:target>
<eip:inListener>
<eip:exchange-target service="tut:file"
endpoint="archive/${some.property}"/>
</eip:inListener>
</eip:wire-tap>
Where ${some.property} would be replaced by the property some.property
coming from the messages that would go through the flow.
That would greatly simplify my xbean config files.
Thanks for any help and regards,
Jeroen
--
View this message in context: http://old.nabble.com/property-replacement-in-xbean-files--tp26521261p26521335.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: property replacement in xbean files?
Posted by Jeroen Verhagen <je...@gmail.com>.
Hi,
Jean-Baptiste Onofré wrote:
>
>
> As xbean.xml is a pure spring beans file, you can use a
> PropertyPlaceHolder to load properties from a file and use in your xbean.
>
> Take a look on
> http://servicemix.apache.org/4-beginner-outsource-su-configuration-in-a-properties-file.html.
>
>
I need the properties to come from the (JBI) messages, not from an external
file. But thanks, anyway because this seems to be a good way to externalize
some properties in my config that will change from local machine to
test/production.
Thanks and regards,
Jeroen
--
View this message in context: http://old.nabble.com/property-replacement-in-xbean-files--tp26521261p26571022.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.