Skip to content

Add support for configuring JDBC session cleanup cron #907

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

Merged
merged 1 commit into from
Oct 27, 2017

Conversation

vpavic
Copy link
Contributor

@vpavic vpavic commented Oct 26, 2017

While we currently do have some configuration support for customizing expired session cleanup cron, this binds directly to specific property and is not exposed using standard configuration facilities (JdbcHttpSessionConfiguration/@EnableJdbcHttpSession). This makes it difficult to expose as application property in Spring Boot.

Customization of cron expression is desirable in scenarios with multiple active nodes, where cleanup should ideally run at different schedule on each node in order to reduce the possibility of deadlock occurrence.

Additionally, since current support is property based, it includes registration of PropertySourcesPlaceholderConfigurer bean in JdbcHttpSessionConfiguration which causes conflicts for some users (see #775).

@rwinch
Copy link
Member

rwinch commented Oct 27, 2017

Thanks @vpavic! Can you fix the conflicts and then merge this?

@vpavic
Copy link
Contributor Author

vpavic commented Oct 27, 2017

No problem, actually I was just about to address this.

@vpavic vpavic self-assigned this Oct 27, 2017
@vpavic vpavic force-pushed the improve-jdbc-config branch from 162233b to 74595ea Compare October 27, 2017 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: jdbc type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants