View Full Version : Using PropertyPlaceholderConfigurer for integer values
fdurden
Jul 15th, 2008, 05:26 AM
Hi,
Is it possible to use the PropertyPlaceholderConfigurer or something else to externalize properties such as the "period" value in the <schedule> element into an external properties file? That period for instance is defined as an integer in the schema, so setting a string like "${pollPeriod}" does not pass validation. Thanks!
Mark Fisher
Jul 15th, 2008, 07:01 AM
This is an interesting point - thanks for raising it!
We do need to consider this tradeoff between XSD validation and placeholder configuration.
-Mark
moores
Jul 15th, 2008, 10:14 AM
See this jira entry for 3.0; looks like jurgen plans to loosen the validation.
http://jira.springframework.org/browse/SPR-3180
Mark Fisher
Jul 15th, 2008, 11:48 AM
Indeed. Could you please raise an issue in the Spring Integration JIRA? We can change the types to xsd:string for attributes that are placeholder candidates in RC1.
Thanks,
Mark
Mark Fisher
Sep 2nd, 2008, 06:33 AM
The JIRA issue is here: http://jira.springframework.org/browse/INT-302
(It is also duplicated: http://jira.springframework.org/browse/INT-359)
Please add any comments to the first issue (INT-302).
jozeph78
Mar 11th, 2009, 05:53 PM
Hi. I've opened a similar thread in the Spring security forum for this issue. The Jira indicates this has been fixed but is is specific to the XSD for Spring integration?
Mark Fisher
Mar 11th, 2009, 05:58 PM
This is something that has to be addressed for individual XSD files.
Powered by vBulletin® Version 4.2.1 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.