Skip to content

Provide XML Namespace for Configuring WebSocket and STOMP [SPR-11063] #15690

@spring-projects-issues

Description

@spring-projects-issues

Gunnar Hillert opened SPR-11063 and commented

We should probably have equivalent namespace support for annotations such as:

  • @EnableWebSocketMessageBroker
  • @EnableWebSocket

The workaround is fairly straight-forward, e.g. create a Java configuration class such as:

@Configuration
@EnableWebSocketMessageBroker
@EnableScheduling
public class WebSocketConfig implements WebSocketMessageBrokerConfigurer {
...

And then import the configuration in the XML application context file:

<bean class="my.package.WebSocketConfig"/>

However, it would be nice to ultimately have feature-parity between the Java configuration and the XML namespace support.


Affects: 4.0 RC1

Referenced from: commits 3ac14e7, 10f5d96, 47ef45d

1 votes, 3 watchers

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions