"[EMAIL PROTECTED]" wrote : Yes, but how does it know to use my.properties to 
get my.property?
  | 


In springframework it is implemented as follows:

1.  use factorybean: 

<bean class = "PropertyPlaceholderConfigurer">
  |  <property name="location"><value>my.properties</value></property>
  | </bean>

2. Container register this bean and then uses it for substituting all ${..}
according to my.properties data when instantiating other beans at proper time 
during lifecycle.

This feature enables you not to touch xml file, when you need to change config 
values. Very convenient


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3911461#3911461

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3911461


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to