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

Access to the cachedSessions in CachingConnectionFactory #26811

Closed
sanorcdel opened this issue Apr 15, 2021 · 0 comments
Closed

Access to the cachedSessions in CachingConnectionFactory #26811

sanorcdel opened this issue Apr 15, 2021 · 0 comments
Assignees
Labels
in: messaging Issues in messaging modules (jms, messaging) type: enhancement A general enhancement
Milestone

Comments

@sanorcdel
Copy link

Hello, it seems the org.springframework.jms.connection.CachingConnectionFactory class uses the cachedSessions property to manage the sessions in the connection factory.

This is a private property and it has not any getter method to obtain the value. In order to instrument CachingConnectionFactory it could be useful to access this property or, at least, its size. Could a public method be added in the CachingConnectionFactory class to return the cachedSessions value (or its size)?

Thanks for your time!

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Apr 15, 2021
@jhoeller jhoeller self-assigned this Apr 15, 2021
@jhoeller jhoeller added in: messaging Issues in messaging modules (jms, messaging) type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Apr 15, 2021
@jhoeller jhoeller added this to the 5.3.7 milestone Apr 15, 2021
Zoran0104 pushed a commit to Zoran0104/spring-framework that referenced this issue Aug 20, 2021
lxbzmy pushed a commit to lxbzmy/spring-framework that referenced this issue Mar 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: messaging Issues in messaging modules (jms, messaging) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

3 participants