@Singleton public class RabbitMQSingletons extends Object implements com.oneandone.iocunit.jms.JmsSingletonsIntf
| Constructor and Description |
|---|
RabbitMQSingletons() |
| Modifier and Type | Method and Description |
|---|---|
javax.jms.Queue |
createQueue(String name) |
javax.jms.Topic |
createTopic(String name) |
void |
destroy()
make sure a new weld-container can be created without residue
|
javax.jms.Connection |
getConnection() |
javax.jms.ConnectionFactory |
getConnectionFactory()
creates the jms-connectionfactory which is injected anywhere during the tests.
|
void |
jms2OnMessage(javax.jms.MessageListener listener,
javax.jms.Message message) |
public javax.jms.Connection getConnection()
getConnection in interface com.oneandone.iocunit.jms.JmsSingletonsIntf@PreDestroy public void destroy()
destroy in interface com.oneandone.iocunit.jms.JmsSingletonsIntfpublic javax.jms.Queue createQueue(String name)
createQueue in interface com.oneandone.iocunit.jms.JmsSingletonsIntfpublic javax.jms.Topic createTopic(String name)
createTopic in interface com.oneandone.iocunit.jms.JmsSingletonsIntfpublic javax.jms.ConnectionFactory getConnectionFactory()
throws Exception
getConnectionFactory in interface com.oneandone.iocunit.jms.JmsSingletonsIntfException - should not occur since mockrunner uses the main memory for jms.public void jms2OnMessage(javax.jms.MessageListener listener,
javax.jms.Message message)
jms2OnMessage in interface com.oneandone.iocunit.jms.JmsSingletonsIntfCopyright © 2017–2021. All rights reserved.