You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I should able to register ServerWebSocketContainer bean with help of application context.
Current Behavior
After dynamically registering ServerWebSocketContainer bean, the HandlerMapping is not getting updated for it's new path and mapping.
Context
I was trying to send notification via websocket on a particular topic but it does not allow to add dynamic topic to existing mappings. Besides that, I am not aware of any workarounds.
Fixesspring-projects#3533
* Rework `WebSocketIntegrationConfigurationInitializer` to register beans functional way
to avoid reflection for Spring Native support
* Move `IntegrationServletWebSocketHandlerRegistry` into a separate file for better readability
* Implement `DestructionAwareBeanPostProcessor` for `IntegrationServletWebSocketHandlerRegistry`
to track runtime bean registrations and removals
* Introduce an `IntegrationDynamicWebSocketHandlerMapping` to manage runtime mapping
registrations and removals
* Add `servlet-api` dependency into `websocket` to be able to compile an
`IntegrationDynamicWebSocketHandlerMapping`
* Fix typo in the exception message of the `StandardIntegrationFlowRegistration`
* Start dynamically added beans together with associated `IntegrationFlow` in the
`StandardIntegrationFlowContext`
* Document new feature
* GH-3533: Register WebSocket endpoints at runtime
Fixes#3533
* Rework `WebSocketIntegrationConfigurationInitializer` to register beans functional way
to avoid reflection for Spring Native support
* Move `IntegrationServletWebSocketHandlerRegistry` into a separate file for better readability
* Implement `DestructionAwareBeanPostProcessor` for `IntegrationServletWebSocketHandlerRegistry`
to track runtime bean registrations and removals
* Introduce an `IntegrationDynamicWebSocketHandlerMapping` to manage runtime mapping
registrations and removals
* Add `servlet-api` dependency into `websocket` to be able to compile an
`IntegrationDynamicWebSocketHandlerMapping`
* Fix typo in the exception message of the `StandardIntegrationFlowRegistration`
* Start dynamically added beans together with associated `IntegrationFlow` in the
`StandardIntegrationFlowContext`
* Document new feature
* * Fix language in docs
* Don't start those `SmartLifecycle`s together with a dynamic flow
which are not `isAutoStartup()`
* * Fix `TomcatWebSocketTestServer` to configure servlet for `loadOnStartup = 1`
* Fix `WebSocketDslTests` to make `clientWebSocketContainer.setAutoStartup(true)`
Expected Behavior
I should able to register
ServerWebSocketContainer
bean with help of application context.Current Behavior
After dynamically registering
ServerWebSocketContainer
bean, theHandlerMapping
is not getting updated for it's new path and mapping.Context
I was trying to send notification via websocket on a particular topic but it does not allow to add dynamic topic to existing mappings. Besides that, I am not aware of any workarounds.
I have already asked a question related to this on stackoverflow. Here is the link: https://stackoverflow.com/questions/62553477/spring-integration-to-register-dynamic-serverwebsocketcontainer-paths-so-differe
The text was updated successfully, but these errors were encountered: