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
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 Summary
Fields inherited from class org.eclipse.persistence.internal.eis.adapters.jms.CciJMSInteractionSpec
destination, destinationURL, messageSelector
Fields inherited from interface jakarta.resource.cci.InteractionSpec
SYNC_RECEIVE, SYNC_SEND, SYNC_SEND_RECEIVE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturn the destination where the entity processing the request is to place the response.Return the destination URL where the entity processing the request is to place the response.long
Return the length of time to wait for a response.boolean
Indicates if a JNDI lookup is to be performed to locate the reply to destination.void
setReplyToDestination
(String dest) Set the destination where the entity processing the request is to place the response.void
Set the replyTo destination JNDI name to be looked up.void
setTimeout
(long timeout) Set the length of time to wait for a response.void
setTimeout
(String timeout) Set the length of time to wait for a response.Methods inherited from class org.eclipse.persistence.internal.eis.adapters.jms.CciJMSInteractionSpec
getDestination, getDestinationURL, getFormattedMessageSelector, getMessageSelector, hasDestinationURL, hasMessageSelector, setDestination, setDestinationURL, setMessageSelector, toString
-
Field Details
-
replyToDestinationURL
-
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
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
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
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
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
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
-