List of usage examples for org.springframework.messaging.simp.config MessageBrokerRegistry setApplicationDestinationPrefixes
public MessageBrokerRegistry setApplicationDestinationPrefixes(String... prefixes)
From source file:org.appverse.web.framework.backend.frontfacade.websocket.autoconfigure.FrontFacadeWebSocketAutoConfiguration.java
@Override public void configureMessageBroker(final MessageBrokerRegistry registry) { registry.enableSimpleBroker(simpleBrokerEndpointPath, queueBrokerEndpointPath); // destination prefix registry.setApplicationDestinationPrefixes(applicationDestinationEndpointPath); }
From source file:org.axonframework.samples.bank.config.WebSocketConfig.java
@Override public void configureMessageBroker(MessageBrokerRegistry config) { if (ArrayUtils.contains(environment.getActiveProfiles(), "distributed-command-bus")) { config.enableStompBrokerRelay("/topic").setRelayHost("rabbitmq"); } else {/*w w w .jav a 2 s.c om*/ config.enableSimpleBroker("/topic"); } config.setApplicationDestinationPrefixes("/app"); }
From source file:org.jimsey.project.sswt.WebSocketConfig.java
@Override public void configureMessageBroker(final MessageBrokerRegistry config) { // to support stomp over websockets natively... // config.enableSimpleBroker("/topic"); // to use the stomp support build into RabbitMQ... config.enableStompBrokerRelay("/topic", "/queue").setRelayHost("localhost").setRelayPort(61613) .setSystemLogin("guest").setSystemPasscode("guest").setVirtualHost("/"); config.setApplicationDestinationPrefixes("/app"); config.setPathMatcher(new AntPathMatcher(".")); }
From source file:edu.eci.arsw.blindway.msgbroker.WebSocketConfig.java
@Override public void configureMessageBroker(MessageBrokerRegistry config) { config.enableSimpleBroker("/topic"); /*config.enableStompBrokerRelay("/topic/").setRelayHost("hyena.rmq.cloudamqp.com").setRelayPort(61613). setClientLogin("rovdbufz")./* ww w . ja va2s .co m*/ setClientPasscode("enal_ax3RluKqdklb_wNYiYMRncx0i1v"). setSystemLogin("rovdbufz"). setSystemPasscode("enal_ax3RluKqdklb_wNYiYMRncx0i1v"). setVirtualHost("rovdbufz");*/ config.setApplicationDestinationPrefixes("/app"); }
From source file:org.jimsey.projects.turbine.condenser.WebSocketConfig.java
@Override public void configureMessageBroker(final MessageBrokerRegistry config) { // to support stomp over websockets natively... // config.enableSimpleBroker("/topic"); // to use the stomp support build into RabbitMQ... config.enableStompBrokerRelay("/topic", "/queue").setRelayHost("localhost").setRelayPort(61613) .setSystemLogin("guest").setSystemPasscode("guest"); // .setVirtualHost("/"); config.setApplicationDestinationPrefixes("/app"); config.setPathMatcher(new AntPathMatcher(".")); }
From source file:de.metas.ui.web.websocket.WebSocketConfig.java
@Override public void configureMessageBroker(final MessageBrokerRegistry config) { // use the /topic prefix for outgoing WebSocket communication config.enableSimpleBroker( // TOPIC_Notifications // , TOPIC_DocumentView // , TOPIC_Devices // );/* w w w . j av a 2s . c om*/ // use the /app prefix for others config.setApplicationDestinationPrefixes("/app"); }
From source file:com.cb.config.WebSocketConfig.java
/** * Configure message broker options./* w ww . j ava 2 s . c o m*/ */ @Override public void configureMessageBroker(MessageBrokerRegistry config) { // The configureMessageBroker() method overrides the default method in // WebSocketMessageBrokerConfigurer to configure the message broker. It // starts by calling enableSimpleBroker() to enable a simple // memory-based message broker to carry the greeting messages back to // the client on destinations prefixed with "/topic/". It also // designates the "/app" prefix for messages that are bound for // @MessageMapping-annotated methods. config.enableSimpleBroker("/topic/", "/queue/"); config.setApplicationDestinationPrefixes("/app"); }