
Originally Posted by
rbrush
But the application uses class.getResource("/MyFile.xml");
to load various data. It fails this because it looks like the classpath used to start activemq does not seem to get down to the application.
Why don't you let Spring locate that resource for you?

Originally Posted by
rbrush
I was wondering if there was anything in Spring that would let me pass the classpath down to the application?
I had a similar problem, where I needed to set the default locale of the JVM.
I had it like that:
Code:
<bean id="localeSetter" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
<property name="staticMethod" value="java.util.Locale.setDefault"/>
<property name="arguments">
<list>
<value>en_DE</value>
</list>
</property>
</bean>
you can use the same approach to set something else to the env.