On Feb 13, 2008 5:55 AM, Daryl Richter <[EMAIL PROTECTED]> wrote:
> Pavlo-
>
> You can do this as follows.  In your xbean you have:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <beans
>     xmlns:core="http://adomain.com/core/1.0";
>     xmlns:sm="http://servicemix.apache.org/config/1.0";
>     xmlns:jms="http://servicemix.apache.org/jms/1.0";>
>
>     <bean id="propertyConfigurer"
> class="org.springframework.beans.factory.config.PropertyPlaceholderConfi
> gurer">
>        <property name="location" value="classpath:my.ini"/>
>     </bean>
>
>     <jms:endpoint service="core:logger" endpoint="ep"
>        connectionFactory="#ConnectionFactory"
>        defaultMep="http://www.w3.org/2004/08/wsdl/in-only";
>        destinationStyle="topic"
>        jmsProviderDestinationName="${configured.topic.name}"
>        role="provider"/>
>
> </beans>

Daryl is exactly correct - use the Spring
PropertyPlaceholderConfigurer for environment variables and properties
files.

Bruce
-- 
perl -e 'print unpack("u30","D0G)[EMAIL 
PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache ActiveMQ - http://activemq.org/
Apache Camel - http://activemq.org/camel/
Apache ServiceMix - http://servicemix.org/
Apache Geronimo - http://geronimo.apache.org/

Blog: http://bruceblog.org/

Reply via email to