Accessing property value in spring bean which was setup programmatically
Benson Fung
Ranch Hand
Joined: Apr 10, 2003
Posts: 207
posted
0
Hi,
I got a strange scenario.
I would like to setup a Properties object programmatically because those values are retrieved from the database. Then these properties values will be then accessed by a spring bean which has been setup in an xml file, e.g. <bean id="ABC" class="org.test.ABC">
<property name="queue" value="${queue_name}"/>
</bean>
where queue_name key is setup programmatically in advanced as its value is retrieved from database.