|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.consol.citrus.jms.JmsSyncMessageSender
public class JmsSyncMessageSender
Synchronous message sender implementation for JMS. Sender publishes messages to a JMS destination and sets the reply destination in the request message. Sender consumes the reply destination right away and invokes a reply message handler implementation with this reply message. Class can either define a static reply destination or a temporary reply destination.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.consol.citrus.message.MessageSender |
|---|
MessageSender.ErrorHandlingStrategy |
| Constructor Summary | |
|---|---|
JmsSyncMessageSender()
|
|
| Method Summary | |
|---|---|
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 |
TestActor |
getActor()
Gets the actor. |
javax.jms.ConnectionFactory |
getConnectionFactory()
Gets the connectionFactory. |
ReplyMessageCorrelator |
getCorrelator()
Gets the correlator. |
protected String |
getDefaultDestinationName()
Get the destination name (either queue name or topic name). |
javax.jms.Destination |
getDestination()
Gets the destination. |
String |
getDestinationName()
Gets the destinationName. |
javax.jms.Destination |
getReplyDestination()
Gets the replyDestination. |
String |
getReplyDestinationName()
Gets the replyDestinationName. |
ReplyMessageHandler |
getReplyMessageHandler()
Get the reply message handler. |
long |
getReplyTimeout()
Gets the replyTimeout. |
protected void |
informReplyMessageHandler(org.springframework.integration.Message<?> responseMessage,
org.springframework.integration.Message<?> requestMessage)
Informs reply message handler for further processing of reply message. |
boolean |
isPubSubDomain()
Is this sender using JMS topics instead of JMS queues. |
void |
send(org.springframework.integration.Message<?> message)
Sends the message. |
void |
setActor(TestActor actor)
Sets the actor. |
void |
setBeanName(String name)
|
void |
setConnectionFactory(javax.jms.ConnectionFactory connectionFactory)
Set the connection factory. |
void |
setCorrelator(ReplyMessageCorrelator correlator)
Set the reply message correlator. |
void |
setDestination(javax.jms.Destination destination)
Set the send destination. |
void |
setDestinationName(String destinationName)
Set the send destination name. |
void |
setPubSubDomain(boolean pubSubDomain)
Set whether to use JMS topics instead of JMS queues. |
void |
setReplyDestination(javax.jms.Destination replyDestination)
Set the reply destination. |
void |
setReplyDestinationName(String replyDestinationName)
Set the reply destination name. |
void |
setReplyMessageHandler(ReplyMessageHandler replyMessageHandler)
Set the reply message handler. |
void |
setReplyTimeout(long replyTimeout)
Set the reply message timeout. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JmsSyncMessageSender()
| Method Detail |
|---|
public void send(org.springframework.integration.Message<?> message)
MessageSender
send in interface MessageSendermessage - the message object to send.
CitrusRuntimeExceptionMessageSender.send(org.springframework.integration.Message)
protected void informReplyMessageHandler(org.springframework.integration.Message<?> responseMessage,
org.springframework.integration.Message<?> requestMessage)
responseMessage - the reply message.requestMessage - the initial request message.protected String getDefaultDestinationName()
protected void createConnection()
throws javax.jms.JMSException
javax.jms.JMSException
protected void createSession(javax.jms.Connection connection)
throws javax.jms.JMSException
connection - to use for session creation.
javax.jms.JMSException
public void destroy()
throws Exception
destroy in interface org.springframework.beans.factory.DisposableBeanExceptionpublic void setConnectionFactory(javax.jms.ConnectionFactory connectionFactory)
connectionFactory - the connectionFactory to setpublic void setReplyMessageHandler(ReplyMessageHandler replyMessageHandler)
replyMessageHandler - the replyMessageHandler to setpublic ReplyMessageHandler getReplyMessageHandler()
public void setDestination(javax.jms.Destination destination)
destination - the destination to setpublic void setDestinationName(String destinationName)
destinationName - the destinationName to setpublic void setReplyDestination(javax.jms.Destination replyDestination)
replyDestination - the replyDestination to setpublic void setReplyDestinationName(String replyDestinationName)
replyDestinationName - the replyDestinationName to setpublic void setReplyTimeout(long replyTimeout)
replyTimeout - the replyTimeout to setpublic void setCorrelator(ReplyMessageCorrelator correlator)
correlator - the correlator to setpublic void setPubSubDomain(boolean pubSubDomain)
pubSubDomain - the pubSubDomain to setpublic boolean isPubSubDomain()
public void setBeanName(String name)
setBeanName in interface org.springframework.beans.factory.BeanNameAwareBeanNameAware.setBeanName(java.lang.String)public javax.jms.ConnectionFactory getConnectionFactory()
public javax.jms.Destination getDestination()
public String getDestinationName()
public javax.jms.Destination getReplyDestination()
public String getReplyDestinationName()
public long getReplyTimeout()
public ReplyMessageCorrelator getCorrelator()
public TestActor getActor()
getActor in interface MessageSenderpublic void setActor(TestActor actor)
actor - the actor to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||