You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Mond Raymond <mo...@gmail.com> on 2010/08/24 14:11:39 UTC
2.4.0 ... Properties via URL?
In Spring I can do this:
<bean id="propertiesUrl" class="org.springframework.core.io.UrlResource">
<constructor-arg>
<jee:jndi-lookup
jndi-name="url/CamelFlatFileToQueueProperties"/>
</constructor-arg>
</bean>
<bean id="propertyConfigurer"
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="location" ref="propertiesUrl"/>
</bean>
I cannot see how to do that using the new Properties. Any advice?
Thanks
Ray
--
View this message in context: http://camel.465427.n5.nabble.com/2-4-0-Properties-via-URL-tp2651118p2651118.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: 2.4.0 ... Properties via URL?
Posted by Mond Raymond <mo...@gmail.com>.
Doh! RTFM for me .... Sorry to have bothered you ...
--
View this message in context: http://camel.465427.n5.nabble.com/2-4-0-Properties-via-URL-tp2651118p2651150.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: 2.4.0 ... Properties via URL?
Posted by Claus Ibsen <cl...@gmail.com>.
In Camel 2.4 you can refer to lookup in the registry for any Properties instance
http://camel.apache.org/properties
location=ref:myProperties
Where myProperties is a java.util.Properties instance.
On Tue, Aug 24, 2010 at 2:11 PM, Mond Raymond <mo...@gmail.com> wrote:
>
> In Spring I can do this:
>
> <bean id="propertiesUrl" class="org.springframework.core.io.UrlResource">
> <constructor-arg>
> <jee:jndi-lookup
> jndi-name="url/CamelFlatFileToQueueProperties"/>
> </constructor-arg>
> </bean>
>
> <bean id="propertyConfigurer"
> class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
> <property name="location" ref="propertiesUrl"/>
> </bean>
>
> I cannot see how to do that using the new Properties. Any advice?
>
> Thanks
>
> Ray
> --
> View this message in context: http://camel.465427.n5.nabble.com/2-4-0-Properties-via-URL-tp2651118p2651118.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
--
Claus Ibsen
Apache Camel Committer
Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus