My Oracle Support Banner

Coherence*Web Session Getting Unbound In Spring Application (Doc ID 2409041.1)

Last updated on DECEMBER 13, 2022

Applies to:

Oracle Coherence - Version and later
Information in this document applies to any platform.


Unexpected behavior when integrating a Spring application with Coherence*Web in Weblogic

Spring application is configured to store its session information with Coherence*web and defines a Java bean with a clean-up method annotated with the "@PreDestroy" annotation. When accessing Spring controller for the first time (or more generally every time a new session is created), an instance of bean with a session scope is created and stored with the session information. After the Spring controller completes and the response is returned to the client, Coherence seems to be calling a session exit which sends an HTTP Binding Event on the session attributes getting destroyed which is intercepted by Spring (who created the annotated bean and registered itself to listen for session unbind events) and the clean-up method in the bean instance is invoked.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.