Class CciJMSSendReceiveInteractionSpec

java.lang.Object
org.eclipse.persistence.internal.eis.adapters.jms.CciJMSInteractionSpec
org.eclipse.persistence.internal.eis.adapters.jms.CciJMSSendReceiveInteractionSpec
All Implemented Interfaces:
InteractionSpec, Serializable

public class CciJMSSendReceiveInteractionSpec extends CciJMSInteractionSpec
INTERNAL: Interaction spec for JMS JCA adapter. Specifies a send/receive message interaction. It is assumed here that the entity processing the request sets the JMSCorrelationID on the response message to be either the JMSCorrelationID of the request message (if non-null) or the JMSMessageID of the request message (if the JMSCorrelationID is null). This allows for the user to define the correlation id to link the request/response messages if they wish. Since we are doing a send/receive in one interaction, we know that the replyTo value indicates the response queue as well.
Since:
OracleAS TopLink 10g (10.0.3)
See Also:
  • Field Details

    • replyToDestinationURL

      protected String replyToDestinationURL
    • replyToDestination

      protected String replyToDestination
    • timeout

      protected long timeout
  • Constructor Details

    • CciJMSSendReceiveInteractionSpec

      public CciJMSSendReceiveInteractionSpec()
  • Method Details

    • hasReplyToDestinationURL

      public boolean hasReplyToDestinationURL()
      Indicates if a JNDI lookup is to be performed to locate the reply to destination. Since we are doing a send/receive in one interaction, we know that this value indicates the response queue as well.
      Returns:
      true if a replyTo destination URL has been specified, false otherwise
    • getReplyToDestinationURL

      public String getReplyToDestinationURL()
      Return the destination URL where the entity processing the request is to place the response. Since we are doing a send/receive in one interaction, we know that this value indicates the response queue as well.
      Returns:
      JMSReplyTo destination URL
    • setReplyToDestinationURL

      public void setReplyToDestinationURL(String url)
      Set the replyTo destination JNDI name to be looked up. Since we are doing a send/receive in one interaction, we know that this value indicates the response queue as well.
    • getReplyToDestination

      public String getReplyToDestination()
      Return the destination where the entity processing the request is to place the response. Since we are doing a send/receive in one interaction, we know that this value indicates the response queue as well.
      Returns:
      JMSReplyTo destination
    • setReplyToDestination

      public void setReplyToDestination(String dest)
      Set the destination where the entity processing the request is to place the response. This is required if JNDI is not being used to lookup the replyTo destination. Since we are doing a send/receive in one interaction, we know that this value indicates the response queue as well.
    • setTimeout

      public void setTimeout(String timeout)
      Set the length of time to wait for a response. A setting of 0 indicates infinite wait time.
      Parameters:
      timeout - - should be set to 0 or above
    • setTimeout

      public void setTimeout(long timeout)
      Set the length of time to wait for a response. A setting of 0 indicates infinite wait time.
      Parameters:
      timeout - - should be set to 0 or above
    • getTimeout

      public long getTimeout()
      Return the length of time to wait for a response.
      Returns:
      length of time to wait for a response, 0 for infinite