Java Code Examples for org.springframework.jms.listener.MessageListenerContainer#isAutoStartup()
The following examples show how to use
org.springframework.jms.listener.MessageListenerContainer#isAutoStartup() .
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: JmsListenerEndpointRegistry.java From spring-analysis-note with MIT License | 4 votes |
/** * Start the specified {@link MessageListenerContainer} if it should be started * on startup or when start is called explicitly after startup. * @see MessageListenerContainer#isAutoStartup() */ private void startIfNecessary(MessageListenerContainer listenerContainer) { if (this.contextRefreshed || listenerContainer.isAutoStartup()) { listenerContainer.start(); } }
Example 2
Source File: JmsListenerEndpointRegistry.java From java-technology-stack with MIT License | 4 votes |
/** * Start the specified {@link MessageListenerContainer} if it should be started * on startup or when start is called explicitly after startup. * @see MessageListenerContainer#isAutoStartup() */ private void startIfNecessary(MessageListenerContainer listenerContainer) { if (this.contextRefreshed || listenerContainer.isAutoStartup()) { listenerContainer.start(); } }
Example 3
Source File: JmsListenerEndpointRegistry.java From spring4-understanding with Apache License 2.0 | 4 votes |
/** * Start the specified {@link MessageListenerContainer} if it should be started * on startup. * @see MessageListenerContainer#isAutoStartup() */ private static void startIfNecessary(MessageListenerContainer listenerContainer) { if (listenerContainer.isAutoStartup()) { listenerContainer.start(); } }