You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by thiago <tc...@gmail.com> on 2010/06/12 00:14:25 UTC
Help with xslt configuration
Hi,
I'm trying to use xslt component: <to uri="xslt:file:<path>" />
My problem is that I'm not being able to make <path> relative to
ActiveMQ's directory (it's always being treated as absolute). How can I make
it relative? (I already tried <to uri="xslt:file:${activemq.home}<path>" />
with no success)
I'm using ActiveMQ 5.3.2.
Regards,
Thiago Souza
--
View this message in context: http://old.nabble.com/Help-with-xslt-configuration-tp28860569p28860569.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Help with xslt configuration
Posted by thiago <tc...@gmail.com>.
Hi,
Found this:
http://camel.apache.org/how-do-i-use-spring-property-placeholder-with-camel-xml.html
and solved my problem :)
Regards
thiago wrote:
>
> Hi,
>
> It's Windows.
> Well, outside the camelContext tag I can definitely use
> ${activemq.home}, but inside it, the variable isn't being replaced...
>
> Cheers..
>
>
> cobrien wrote:
>>
>> It would be interesting to know what platform you are on. To have a
>> cross-platform solution you may want to try using
>> PropertyPlaceholderConfigurer to set a property for your activemq home.
>>
>> something like
>>
>> <bean id="propertyConfigurer"
>> class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
>> <property name="activemq_home" value="file:/${activemq.home}"/>
>> </bean>
>>
>> Clark
>> http://www.ttmsolutions.com
>>
>>
>>
>> thiago wrote:
>>>
>>> Hi,
>>>
>>> I'm trying to use xslt component: <to uri="xslt:file:<path>" />
>>>
>>> My problem is that I'm not being able to make <path> relative to
>>> ActiveMQ's directory (it's always being treated as absolute). How can I
>>> make it relative? (I already tried <to
>>> uri="xslt:file:${activemq.home}<path>" /> with no success)
>>>
>>> I'm using ActiveMQ 5.3.2.
>>>
>>> Regards,
>>> Thiago Souza
>>>
>>>
>>>
>>
>>
>
>
--
View this message in context: http://old.nabble.com/Help-with-xslt-configuration-tp28860569p28879536.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Help with xslt configuration
Posted by thiago <tc...@gmail.com>.
Hi,
It's Windows.
Well, outside the camelContext tag I can definitely use ${activemq.home},
but inside it, the variable isn't being replaced...
Cheers..
cobrien wrote:
>
> It would be interesting to know what platform you are on. To have a
> cross-platform solution you may want to try using
> PropertyPlaceholderConfigurer to set a property for your activemq home.
>
> something like
>
> <bean id="propertyConfigurer"
> class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
> <property name="activemq_home" value="file:/${activemq.home}"/>
> </bean>
>
> Clark
> http://www.ttmsolutions.com
>
>
>
> thiago wrote:
>>
>> Hi,
>>
>> I'm trying to use xslt component: <to uri="xslt:file:<path>" />
>>
>> My problem is that I'm not being able to make <path> relative to
>> ActiveMQ's directory (it's always being treated as absolute). How can I
>> make it relative? (I already tried <to
>> uri="xslt:file:${activemq.home}<path>" /> with no success)
>>
>> I'm using ActiveMQ 5.3.2.
>>
>> Regards,
>> Thiago Souza
>>
>>
>>
>
>
--
View this message in context: http://old.nabble.com/Help-with-xslt-configuration-tp28860569p28861065.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Help with xslt configuration
Posted by cobrien <cl...@yahoo.com>.
It would be interesting to know what platform you are on. To have a
cross-platform solution you may want to try using
PropertyPlaceholderConfigurer to set a property for your activemq home.
something like
<bean id="propertyConfigurer"
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="activemq_home" value="file:/${activemq.home}"/>
</bean>
Clark
http://www.ttmsolutions.com
thiago wrote:
>
> Hi,
>
> I'm trying to use xslt component: <to uri="xslt:file:<path>" />
>
> My problem is that I'm not being able to make <path> relative to
> ActiveMQ's directory (it's always being treated as absolute). How can I
> make it relative? (I already tried <to
> uri="xslt:file:${activemq.home}<path>" /> with no success)
>
> I'm using ActiveMQ 5.3.2.
>
> Regards,
> Thiago Souza
>
>
>
--
View this message in context: http://old.nabble.com/Help-with-xslt-configuration-tp28860569p28861064.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.