Hi ,
you would have to register the messageSource bean as follows
Code:
<bean id="messageSource" class="org.springframework.context.support.ReloadableResourceBundleMessageSource">
<property name="basenames">
<list>
<value>/WEB-INF/ApplicationResource.properties</value>
</list>
</property>
<property name="cacheSeconds" value="10"/>
</bean>
then use the applicationContext to lookup the bean
Code:
MessageSource source = (MessageSource)ctx.getBean("messageSource")
String message =source.getMessage("webapp.name",null,null);
you could also inject the messageSource Bean into the dependent bean