Created
March 12, 2014 12:25
-
-
Save snicoll/9505882 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@EnableJms | |
@Configuration | |
static class EnableJmsConfig { | |
@Bean | |
public JmsListenerContainerTestFactory defaultJmsListenerContainerFactory() { | |
return new JmsListenerContainerTestFactory("default"); | |
} | |
@Bean | |
public JmsListenerContainerTestFactory simpleJmsListenerContainerFactory() { | |
return new JmsListenerContainerTestFactory("simple"); | |
} | |
} | |
@Component | |
static class SampleBean { | |
@JmsListener(destination = "myQueue") | |
public void defaultHandle(String msg) { | |
} | |
@JmsListener(factoryId = "simple", destination = "myQueue") | |
public void simpleHandle(String msg) { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment