Skip to main content

All Questions

1 vote
0 answers
103 views

Websocket session is not being persisted in JDBC session store type

Problem: WebSocker session data are not persisted in precreated session tables (SPRING_SESSION, SPRING_SESSION_ATTRIBUTES) I followed this guide to implement it https://docs.spring.io/spring-session/...
thomn9's user avatar
  • 11
1 vote
0 answers
200 views

Cannot reconnect/clear out timed out sessions in spring boot websocket server backed with Jdbc and Postgres using java websocket client

I have issues in having sessions properly deleted in my stomp websocket server, when clients are closed or after long inactivity. I attempted with and without spring session but could not achieve the ...
CT95's user avatar
  • 149
0 votes
1 answer
183 views

Integrate spring session into websocket for Http session clean up

I have a Spring Boot websocket server deployed on Heroku and need help to properly implement authentication and session management in order to clean up/invalidate the authenticated sessions when the ...
CT95's user avatar
  • 149
5 votes
1 answer
3k views

Spring boot Websocket scaling

I have a spring boot application using web-sockets and stomp, I have to use the xhr-polling protocol because of limitations to our ISAM setup and this application will be hosted on Pivotal Cloud ...
spence's user avatar
  • 166
0 votes
1 answer
1k views

Spring Boot WebSocket Questions

I am new to Spring framework, now I chose it for a new project. The project is actually an online consulting application. when a customer chooses to query by open page window, A consulting engineer ...
Korben's user avatar
  • 734
4 votes
3 answers
5k views

Spring session + Spring web socket. Send message to specific client based on session id

I have followed Quetion1 and Quetion2 from stack overflow to send messages to specific client, based on its sessionId but could not find success. Below is my sample RestController class @...
Akshada's user avatar
  • 190
2 votes
0 answers
488 views

Spring Websocket: how to customize session disconnect message?

I really wonder if there is a way to customize a message in SESSION_EXPIRED_STATUS from WebSocketRegistryListener. The default implementation is follow: static final CloseStatus ...
jahra's user avatar
  • 1,223
7 votes
0 answers
2k views

How do you copy stomp websocket sessions to redis in spring when you are using REST API and JWT

I am building a small websocket project and secured by JWT token mechanism and I would like to store websocket sessions in redis not local memory. @Override protected void configureStompEndpoints(...
Inacio's user avatar
  • 127
5 votes
1 answer
2k views

Share Websocket Session between Spring Micro Service

I've a Spring boot Application for Web sockets. I'm not using Stomp Web socket. Is there way we can share web socket sessions across multiple instance of micro service. Is there a way we can save ...
Sathish Santhosam's user avatar
0 votes
1 answer
913 views

websocket sessions sample doesn't cluster.. spring-session-1.2.2

I'm testing clustering of spring sessions websocket sample. I'm running the sample as described in docs: http://docs.spring.io/spring-session/docs/current/reference/html5/guides/websocket.html. Code ...
criedluv's user avatar
2 votes
1 answer
840 views

Spring Session with hazelcast session events firing

I am using Spring Session with Hazelcast and Spring Websockets. As I don't need clustarization I use hazelcast with MapSessionRepository. But it doesn't fire event on session expiring or session ...
jahra's user avatar
  • 1,223
0 votes
1 answer
940 views

Spring Session without Redis

I wanted to try Spring Session integration in order to link Websocket session with http session. But I am not ready to go full Radis/Hazlecast yet. My server uses Tomcat replication. What will having ...
Elijah's user avatar
  • 1,292
1 vote
0 answers
1k views

Spring session and websockets: session not stored in session repository

I have an application with Spring Session and Spring Websockets. I use websocket handshake interceptor to set properties to websocket session public class WebsocketHandshakeInterceptor implements ...
jahra's user avatar
  • 1,223
3 votes
1 answer
3k views

Spring SockJs RequestHandler doesn't upgrade connection to 101

Even though this is not described in the Spring documentation, a websocket connect should lead to a connection upgrade response (101 status). @Configuration @EnableWebSocketMessageBroker public ...
Marc's user avatar
  • 6,972
0 votes
1 answer
1k views

Not getting SPRING.SESSION.ID from headers

I'm using spring session and AbstractSessionWebSocketMessageBrokerConfigurer and am trying to create a STOMP Websocket with support for Spring Security and Spring Session. I can't seem to get my ...
Marc's user avatar
  • 6,972

15 30 50 per page