question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

JdbcOperationsSessionRepository

See original GitHub issue

Hello,

we are using spring-session-1.3.1.RELEASE and have multiple issues/recommendations:

  1. Modify the visibility for some classes to make them easier extendable. Composition doesn’t work all the time (I’m speaking about those private static parameters and private final inner classes).

  2. Fire events whenever a session gets created/deleted, or just provide the possibility for adding listeners.

  3. It would be nice to have a strategy for setting the Spring SESSION_ID (e.g., for org.springframework.session.jdbc.JdbcOperationsSessionRepository). Right now you have to derive from JdbcOperationsSessionRepository and override createSession(). This way you can access your resources for determining the SESSION_ID, but:

To create a new org.springframework.session.jdbc.JdbcOperationsSessionRepository.JdbcSession, you have to provide an e.g., org.springframework.session.MapSession.MapSession(String). Unfortunately the isNew flag will be set to false, hence the newly generated session will not be persisted within the repository.

Regards, Manuel

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
vpaviccommented, Feb 8, 2018

@wjun20314 You might find this comment useful.

Also note that since your question is unrelated to this ticket it’s preferable to open a new one or ask on our Gitter channel or Stack Overflow using spring-session tag.

Update: Now I see you’ve posted on SO (if this is you), I’ve provided an answer.

0reactions
wjun20314commented, Feb 8, 2018

I using spring-session-2.0.1.RELEASE but I have error the type org.springframework.session.jdbc.JdbcOperationsSessionRepository.JdbcSession is not visible, may I know how can I create session by using JdbcOperationsSessionRepository and assign to JdbcSession?

Then I will use JdbcOperationsSessionRepository will save the JdbcSession to database.

Read more comments on GitHub >

github_iconTop Results From Across the Web

JdbcOperationsSessionRepository (spring-session-docs 2.0.0 ...
A SessionRepository implementation that uses Spring's JdbcOperations to store sessions in a relational database. This implementation does not support ...
Read more >
JdbcOperationsSessionRepository.jdbcSession is not visible
My program is using Spring Session xml based configuration and I using JdbcOperationsSessionRepository to implement my session.
Read more >
JdbcOperationsSessionRepository - Java - Tabnine
Create a new {@link JdbcOperationsSessionRepository} instance which uses the * provided {@link JdbcOperations} to manage sessions.
Read more >
org.springframework.session.jdbc ...
JdbcOperationsSessionRepository maven / gradle build tool code. The class is part of the package ➦ Group: org.springframework.session ➦ Artifact: ...
Read more >
`JdbcOperationsSessionRepository` cleanUpExpiredSessions ...
Spring session version: 2.1.4.RELEASE Brief description: JdbcOperationsSessionRepository.cleanUpExpiredSessions methods fails due to foreign ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found