|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.osesb.connectors.jms.SynchronousSendMessageHelper
public class SynchronousSendMessageHelper
This class uses properties given by the <synchronous-jms-configuration>
extension to the JMSClientConfiguration to set up request/reply interactions
on behalf of JMS clients that send a message and wait for a reply.
The sendSynchronousJMSMessage() method of JMSQueueSender and JMSTopicPublisher
uses this Class to receive the reply to a synchronous message.
| Field Summary | |
|---|---|
protected JMSClientConfiguration |
jmsClientConfiguration
The JMS configuration for this SynchronousSendMessageHelper, which must include a <synchronous-jms-configuration> content model. |
protected JNDIHelper |
jndiHelper
Lazy instantiation in getReplyReceiver() for looking up non-pooled, JMS Consumers configured in the <synchronous-jms-configuration> content model. |
protected java.lang.String |
thisClassName
The full name of this class. |
| Constructor Summary | |
|---|---|
SynchronousSendMessageHelper(JMSClientConfiguration jmsClientConfiguration)
Creates a new instance of SynchronousSendMessageHelper |
|
| Method Summary | |
|---|---|
javax.jms.Message |
getReply(javax.jms.Message jmsMessage)
Gets a reply to a JMS message. |
protected JMSConsumerBase |
getReplyReceiver(javax.jms.Message jmsMessage)
Uses properties given by the <synchronous-jms-configuration> to
return a JMSConsumerBase as a JMSQueueReceiver or JMSTopicReceiver,
depending on the replyToDestination type. |
protected javax.jms.Destination |
getReplyToDestination()
Uses properties given by the <synchronous-jms-configuration> to
return a ReplyTo Destination. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected JMSClientConfiguration jmsClientConfiguration
<synchronous-jms-configuration> content model.
protected JNDIHelper jndiHelper
<synchronous-jms-configuration> content model.
Never instantiated if the reply to receiver is pooled.
protected java.lang.String thisClassName
| Constructor Detail |
|---|
public SynchronousSendMessageHelper(JMSClientConfiguration jmsClientConfiguration)
throws java.lang.Exception
jmsClientConfiguration - The JMSClientConfiguration object to use for this helper.
Note that if constructed by a JMSProducer, then this will probably be the
JMSClientConfiguration for that producer.
java.lang.Exception - if constructed with a null JMSClientConfiguration or with
a jmsClientConfiguration with a null or empty synchJMSConfiguration.| Method Detail |
|---|
public javax.jms.Message getReply(javax.jms.Message jmsMessage)
throws java.lang.Exception
jmsMessage - The message for which we are getting a reply.
java.lang.Exception - if there is a problem receiving the reply.
protected javax.jms.Destination getReplyToDestination()
throws java.lang.Exception
<synchronous-jms-configuration> to
return a ReplyTo Destination.
Discovers the replyToDestination according to the following plan:
java.lang.Exception - if there is a problem getting the Destination.
protected JMSConsumerBase getReplyReceiver(javax.jms.Message jmsMessage)
throws java.lang.Exception
<synchronous-jms-configuration> to
return a JMSConsumerBase as a JMSQueueReceiver or JMSTopicReceiver,
depending on the replyToDestination type.
Obtains a JMSConsumerBase according to the following plan:
java.lang.Exception - if there is a problem getting the JMSProducer.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||