Java Code Examples for org.springframework.messaging.simp.config.MessageBrokerRegistry#setApplicationDestinationPrefixes()

The following examples show how to use org.springframework.messaging.simp.config.MessageBrokerRegistry#setApplicationDestinationPrefixes() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: WebsocketConfiguration.java    From airsonic-advanced with GNU General Public License v3.0 5 votes vote down vote up
@Override
public void configureMessageBroker(MessageBrokerRegistry config) {
    config.enableSimpleBroker("/topic", "/queue")
            .setHeartbeatValue(new long[] { 25000, 25000 })
            .setTaskScheduler(messageBrokerTaskScheduler);
    config.setApplicationDestinationPrefixes("/app");

    // this ensures publish order is serial at the cost of no parallelization and
    // performance - if performance is bad, this should be turned off
    config.setPreservePublishOrder(true);
}
 
Example 2
Source File: WebSocketConfig.java    From spring-twitter-stream with MIT License 4 votes vote down vote up
@Override
public void configureMessageBroker(MessageBrokerRegistry config) {
    config.enableSimpleBroker("/topic");
    config.setApplicationDestinationPrefixes("/app");
}
 
Example 3
Source File: WebsocketConfig.java    From quartz-manager with Apache License 2.0 4 votes vote down vote up
@Override
public void configureMessageBroker(MessageBrokerRegistry config) {
	config.enableSimpleBroker("/topic");
	config.setApplicationDestinationPrefixes("/job");
}
 
Example 4
Source File: WebSocketConfig.java    From springboot-sockjs-stomp-vue-sample with MIT License 4 votes vote down vote up
@Override
public void configureMessageBroker(MessageBrokerRegistry config) {
    config.enableSimpleBroker("/stock");
    config.setApplicationDestinationPrefixes("/app");
}
 
Example 5
Source File: WebSocketConfig.java    From spring-session with Apache License 2.0 4 votes vote down vote up
@Override
public void configureMessageBroker(MessageBrokerRegistry registry) {
	registry.enableSimpleBroker("/queue/", "/topic/");
	registry.setApplicationDestinationPrefixes("/app");
}
 
Example 6
Source File: WebSocketConfig.java    From kafka-webview with MIT License 4 votes vote down vote up
@Override
public void configureMessageBroker(MessageBrokerRegistry config) {
    // Where messages published from the server side are published to.
    // OR ... the prefix for where consumers subscribe.
    config.enableSimpleBroker("/topic");

    //Controller end point prefixes, where consumers publish messages TO.
    config.setApplicationDestinationPrefixes("/websocket");
}
 
Example 7
Source File: WebSocketConfig.java    From eventsourcing-examples with Apache License 2.0 4 votes vote down vote up
@Override
public void configureMessageBroker(MessageBrokerRegistry config) {
    config.enableSimpleBroker("/calendar");
    config.setApplicationDestinationPrefixes("/app");
}
 
Example 8
Source File: WebSocketConfig.java    From JavaMonitor with Apache License 2.0 4 votes vote down vote up
@Override
public void configureMessageBroker(MessageBrokerRegistry config) {
    config.enableSimpleBroker("/topic");
    config.setApplicationDestinationPrefixes("/app");
}
 
Example 9
Source File: WebSocketConfig.java    From citrus-admin with Apache License 2.0 4 votes vote down vote up
@Override
public void configureMessageBroker(MessageBrokerRegistry config) {
    config.enableSimpleBroker("/topic");
    config.setApplicationDestinationPrefixes("/api/socket");
}
 
Example 10
Source File: WebsocketTest.java    From java-spring-cloud with Apache License 2.0 4 votes vote down vote up
@Override
public void configureMessageBroker(MessageBrokerRegistry config) {
  config.enableSimpleBroker("/topic");
  config.setApplicationDestinationPrefixes("/app");
}
 
Example 11
Source File: Spring4WebSocketExamplesApplication.java    From spring4ws-demos with Apache License 2.0 4 votes vote down vote up
@Override
public void configureMessageBroker(MessageBrokerRegistry registry) {
	registry.setApplicationDestinationPrefixes("/app");
}
 
Example 12
Source File: WebSocketConfig.java    From ddd-with-spring with Apache License 2.0 4 votes vote down vote up
@Override
public void configureMessageBroker(MessageBrokerRegistry config) {
	config.enableSimpleBroker("/topic");
	config.setApplicationDestinationPrefixes("/app");
}
 
Example 13
Source File: WebSocketConfig.java    From cloudstreetmarket.com with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void configureMessageBroker(final MessageBrokerRegistry registry) {
    registry.enableStompBrokerRelay(TOPICS_ROOT_PATH, QUEUES_ROOT_PATH);
    registry.setApplicationDestinationPrefixes(APPLICATION_PREFIX_PATH);
}
 
Example 14
Source File: WebSocketConfiguration.java    From haven-platform with Apache License 2.0 4 votes vote down vote up
@Override
public void configureMessageBroker(MessageBrokerRegistry config) {
    config.enableSimpleBroker("/topic", "/queue");
    config.setApplicationDestinationPrefixes("/app");
}
 
Example 15
Source File: WebSocketConfig.java    From kafka-streams-api-websockets with Apache License 2.0 4 votes vote down vote up
@Override
public void configureMessageBroker(MessageBrokerRegistry config) {
    config.enableSimpleBroker(broker);
    config.setApplicationDestinationPrefixes(prefix);
}
 
Example 16
Source File: WebSocketConfig.java    From spring-boot-vuejs-websockets with MIT License 4 votes vote down vote up
@Override
public void configureMessageBroker(MessageBrokerRegistry config) {
	config.enableSimpleBroker("/info");
	config.setApplicationDestinationPrefixes("/app");
}
 
Example 17
Source File: WebSocketConfig.java    From torrssen2 with MIT License 4 votes vote down vote up
@Override
public void configureMessageBroker(MessageBrokerRegistry config) {
    config.enableSimpleBroker("/topic");
    config.setApplicationDestinationPrefixes("/app");
}
 
Example 18
Source File: WebSocketConfig.java    From glowroot with Apache License 2.0 4 votes vote down vote up
@Override
public void configureMessageBroker(MessageBrokerRegistry config) {
    config.enableSimpleBroker("/destination");
    config.setApplicationDestinationPrefixes("/app");
}
 
Example 19
Source File: WebsocketConfig.java    From cloudbreak with Apache License 2.0 4 votes vote down vote up
@Override
public void configureMessageBroker(MessageBrokerRegistry config) {
    config.enableSimpleBroker("/topic");
    config.setApplicationDestinationPrefixes("/app");
}
 
Example 20
Source File: WebSocketConfig.java    From inventory-hub-java-on-azure with MIT License 4 votes vote down vote up
@Override
public void configureMessageBroker(MessageBrokerRegistry config) {
	config.enableSimpleBroker("/topic/", "/queue/");
	config.setApplicationDestinationPrefixes("/app");
}