component and transformer

View: New views
2 Messages — Rating Filter:   Alert me  

component and transformer

by Ravi Kumar :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have defined the following transformers:
<mulexml:xslt-transformer name="Special1" xsl-file="special1.xslt" />
<mulexml:xslt-transformer name="Special2" xsl-file="special2.xslt" />

I need to have access to the transformers from within my component to transform certain parts of my payload.
Is it possible to get access to the above transformer from within my component?
Thanks

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: component and transformer

by Dirk Olmes :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

colvaman wrote:
> I have defined the following transformers: <mulexml:xslt-transformer
> name="Special1" xsl-file="special1.xslt" /> <mulexml:xslt-transformer
> name="Special2" xsl-file="special2.xslt" />
>
> I need to have access to the transformers from within my component to
> transform certain parts of my payload. Is it possible to get access
> to the above transformer from within my component?

Define the transformers and your component as spring beans. Wire them
together using spring. Reference those spring beans from Mule's config.

HTH,

-dirk

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email