public class JmsSyncProducer extends JmsProducer implements com.consol.citrus.messaging.ReplyConsumer
| Constructor and Description |
|---|
JmsSyncProducer(String name,
JmsSyncEndpointConfiguration endpointConfiguration)
Default constructor using endpoint configuration.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
createConnection()
Create new JMS connection.
|
protected void |
createSession(javax.jms.Connection connection)
Create new JMS session.
|
void |
destroy()
Destroy method closing JMS session and connection
|
CorrelationManager<Message> |
getCorrelationManager()
Gets the correlation manager.
|
Message |
receive(String selector,
TestContext context) |
Message |
receive(String selector,
TestContext context,
long timeout) |
Message |
receive(TestContext context) |
Message |
receive(TestContext context,
long timeout) |
void |
send(Message message,
TestContext context) |
void |
setCorrelationManager(CorrelationManager<Message> correlationManager)
Sets the correlation manager.
|
getNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNamepublic JmsSyncProducer(String name, JmsSyncEndpointConfiguration endpointConfiguration)
name - endpointConfiguration - public void send(Message message, TestContext context)
send in interface com.consol.citrus.messaging.Producersend in class JmsProducerpublic Message receive(TestContext context)
receive in interface com.consol.citrus.messaging.Consumerpublic Message receive(String selector, TestContext context)
receive in interface com.consol.citrus.messaging.SelectiveConsumerpublic Message receive(TestContext context, long timeout)
receive in interface com.consol.citrus.messaging.Consumerpublic Message receive(String selector, TestContext context, long timeout)
receive in interface com.consol.citrus.messaging.SelectiveConsumerprotected void createConnection()
throws javax.jms.JMSException
javax.jms.JMSExceptionprotected void createSession(javax.jms.Connection connection)
throws javax.jms.JMSException
connection - to use for session creation.javax.jms.JMSExceptionpublic void destroy()
public CorrelationManager<Message> getCorrelationManager()
public void setCorrelationManager(CorrelationManager<Message> correlationManager)
correlationManager - Copyright © 2008–2021 ConSol Software GmbH. All rights reserved.