Class CciJMSInteractionSpec
java.lang.Object
org.eclipse.persistence.internal.eis.adapters.jms.CciJMSInteractionSpec
- All Implemented Interfaces:
InteractionSpec
,Serializable
- Direct Known Subclasses:
CciJMSReceiveInteractionSpec
,CciJMSSendInteractionSpec
,CciJMSSendReceiveInteractionSpec
INTERNAL:
Interaction spec for JMS JCA adapter.
- Since:
- OracleAS TopLink 10g (10.0.3)
- See Also:
-
Field Summary
Fields inherited from interface jakarta.resource.cci.InteractionSpec
SYNC_RECEIVE, SYNC_SEND, SYNC_SEND_RECEIVE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturn the name of the destination - required if JNDI is not being used.Return the URL of the destination.Returns the message selector in the appropriate format.Returns the message selector to be used to link the request and response messages.boolean
Indicates if a JNDI lookup is to be performed to locate the destination.boolean
Indicates if the user has set a message selector.void
setDestination
(String dest) Set the name of the destination to be used.void
setDestinationURL
(String url) Set the destination URL to be looked up.void
setMessageSelector
(String selector) Sets the message selector to be used to link the request and response messages.toString()
Returns the destination URL or class
-
Field Details
-
destinationURL
-
destination
-
messageSelector
-
-
Constructor Details
-
CciJMSInteractionSpec
public CciJMSInteractionSpec()Default constructor.
-
-
Method Details
-
hasDestinationURL
public boolean hasDestinationURL()Indicates if a JNDI lookup is to be performed to locate the destination.- Returns:
- true if a destination URL has been specified, false otherwise
-
setDestinationURL
Set the destination URL to be looked up.- Parameters:
url
- - the destination name as registered in JNDI
-
getDestinationURL
Return the URL of the destination.- Returns:
- the destination name as registered in JNDI
-
setDestination
Set the name of the destination to be used. This is required if JNDI is not being used to lookup the destination. -
getDestination
Return the name of the destination - required if JNDI is not being used.- Returns:
- the name of the destination to be used
-
setMessageSelector
Sets the message selector to be used to link the request and response messages. If this value is not set, it is assumed that the entity processing the request will set the JMSCorrelationID of the reponse message using the JMSMessageID of the request messsage. -
getMessageSelector
Returns the message selector to be used to link the request and response messages.- Returns:
- the message selector.
-
getFormattedMessageSelector
Returns the message selector in the appropriate format. The selector is set in JMS message selector format: "JMSCorrelationID = 'message_selector'- Returns:
- formatted message selector - uses JMSCorrelationID
-
hasMessageSelector
public boolean hasMessageSelector()Indicates if the user has set a message selector.- Returns:
- true if a message selector has been set, false otherwise
-
toString
Returns the destination URL or class
-