Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PropertyPlaceholderConfigurer doesn't work on beans defined in own schema e.g. tx:* [SPR-4847] #9523

Closed
spring-projects-issues opened this issue May 22, 2008 · 2 comments
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) status: duplicate A duplicate of another issue type: enhancement A general enhancement

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented May 22, 2008

Roman Pichlík opened SPR-4847 and commented

Following placeholder isn't replaced.

<tx:method name="save" timeout="${my.timeout}" propagation="REQUIRED"/>


Affects: 2.5.2

Issue Links:

@spring-projects-issues
Copy link
Collaborator Author

Juergen Hoeller commented

Actually, placeholders are supported in namespace attributes as well... However, the "timeout" attribute in the tx namespace is declared as type integer in the XSD, which makes it reject placeholder string values. We'll revisit this in the 3.0 generation, possibly formally declaring such attributes as type string - expressing the actual target type integer in the form of other metadata that tooling may process.

Juergen

@spring-projects-issues
Copy link
Collaborator Author

Juergen Hoeller commented

Forgot to mention: There is a "defaultTimeout" property on AbstractPlatformTransactionManager since Spring 2.0.2 which can be used to specify default values across all transaction attributes - and which does accept a placeholder value!

Juergen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) status: duplicate A duplicate of another issue type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants