You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by jhair <js...@yahoo.com> on 2006/10/20 03:39:24 UTC

Using FilePoller/FileWriter in an SU

When packaging a SU that uses a FilePoller and FileWriter, is it possible to
pass in the polling & output directories from the static/boot
servicemix.xml?

I'd like to create my SU to be environment in-dependent. In this way, I can
package my code using the FilePoller, FileWriter, and other business
components within an SU but allow my client to specify the location of the
input & output directories. I don't want to have repackage the SU.

Thanx,
jsh
-- 
View this message in context: http://www.nabble.com/Using-FilePoller-FileWriter-in-an-SU-tf2477367.html#a6908949
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Using FilePoller/FileWriter in an SU

Posted by Guillaume Nodet <gn...@gmail.com>.
You could use a JNDI reference for these parameters and
use spring to inject the retreieve / inject the values.
You may also use spring to load properties from
a file and inject them.

On 10/20/06, jhair <js...@yahoo.com> wrote:
>
> When packaging a SU that uses a FilePoller and FileWriter, is it possible to
> pass in the polling & output directories from the static/boot
> servicemix.xml?
>
> I'd like to create my SU to be environment in-dependent. In this way, I can
> package my code using the FilePoller, FileWriter, and other business
> components within an SU but allow my client to specify the location of the
> input & output directories. I don't want to have repackage the SU.
>
> Thanx,
> jsh
> --
> View this message in context: http://www.nabble.com/Using-FilePoller-FileWriter-in-an-SU-tf2477367.html#a6908949
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>


-- 
Cheers,
Guillaume Nodet