Search in sources :

Example 16 with RMQConnectionFactory

use of com.rabbitmq.jms.admin.RMQConnectionFactory in project rabbitmq-jms-client by rabbitmq.

the class SendingContextConsumerIT method init.

@BeforeEach
public void init() throws Exception {
    RMQConnectionFactory connectionFactory = (RMQConnectionFactory) AbstractTestConnectionFactory.getTestConnectionFactory().getConnectionFactory();
    connectionFactory.setSendingContextConsumer(ctx -> sentCount.incrementAndGet());
    connection = connectionFactory.createConnection();
    connection.start();
}
Also used : RMQConnectionFactory(com.rabbitmq.jms.admin.RMQConnectionFactory) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

RMQConnectionFactory (com.rabbitmq.jms.admin.RMQConnectionFactory)16 BeforeEach (org.junit.jupiter.api.BeforeEach)4 Session (javax.jms.Session)3 SSLContext (javax.net.ssl.SSLContext)3 Test (org.junit.jupiter.api.Test)3 ArrayBlockingQueue (java.util.concurrent.ArrayBlockingQueue)2 BlockingQueue (java.util.concurrent.BlockingQueue)2 Queue (javax.jms.Queue)2 RMQTextMessage (com.rabbitmq.jms.client.message.RMQTextMessage)1 DataConnectException (io.openmessaging.connector.api.exception.DataConnectException)1 NoSuchAlgorithmException (java.security.NoSuchAlgorithmException)1 ArrayList (java.util.ArrayList)1 Connection (javax.jms.Connection)1 Destination (javax.jms.Destination)1 JMSException (javax.jms.JMSException)1 MessageProducer (javax.jms.MessageProducer)1 QueueConnection (javax.jms.QueueConnection)1 TextMessage (javax.jms.TextMessage)1