org.springframework.jms.core.JmsTemplate and other
JMS-accessing gateway helpers, adding destination-related properties to
JmsAccessor's common properties.
Not intended to be used directly.
See org..
org.springframework.jms.support.JmsAccessor , org.springframework.jms.core.JmsTemplate
| Modifier and Type | Field and Description |
|---|---|
| private DestinationResolver | |
| private boolean | |
| public static final long | RECEIVE_TIMEOUT_INDEFINITE_WAIT
Timeout value indicating a blocking receive without timeout. |
| public static final long | RECEIVE_TIMEOUT_NO_WAIT
Timeout value indicating that a receive operation should check if a message is immediately available without blocking. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public DestinationResolver | |
| public boolean | |
| protected Message | Returns: the JMS Message received, ornull if nonethe JMS MessageConsumer to receive with consumer, long the receive timeout (a negative value indicates
a no-wait receive; 0 indicates an indefinite wait attempt) timeout)Actually receive a message from the given consumer. |
| protected Destination | Returns: the locatedDestinationthe current JMS session, String Sessionthe name of the destination destinationName)Resolve the given destination name into a JMS |
| public void | setDestinationResolver(DestinationResolver destinationResolver)
Set the |
| public void | setPubSubDomain(boolean pubSubDomain)
Configure the destination accessor with knowledge of the JMS domain used. |
| destinationResolver | back to summary |
|---|---|
| private DestinationResolver destinationResolver | |
| pubSubDomain | back to summary |
|---|---|
| private boolean pubSubDomain | |
| RECEIVE_TIMEOUT_INDEFINITE_WAIT | back to summary |
|---|---|
| public static final long RECEIVE_TIMEOUT_INDEFINITE_WAIT Timeout value indicating a blocking receive without timeout.
| |
| RECEIVE_TIMEOUT_NO_WAIT | back to summary |
|---|---|
| public static final long RECEIVE_TIMEOUT_NO_WAIT Timeout value indicating that a receive operation should check if a message is immediately available without blocking.
| |
| JmsDestinationAccessor | back to summary |
|---|---|
| public JmsDestinationAccessor() | |
| getDestinationResolver | back to summary |
|---|---|
| public DestinationResolver getDestinationResolver() Return the DestinationResolver for this accessor (never | |
| isPubSubDomain | back to summary |
|---|---|
| public boolean isPubSubDomain() Return whether the Publish/Subscribe domain ( | |
| receiveFromConsumer | back to summary |
|---|---|
| protected Message receiveFromConsumer(MessageConsumer consumer, long timeout) throws JMSException Actually receive a message from the given consumer.
| |
| resolveDestinationName | back to summary |
|---|---|
| protected Destination resolveDestinationName(Session session, String destinationName) throws JMSException Resolve the given destination name into a JMS
| |
| setDestinationResolver | back to summary |
|---|---|
| public void setDestinationResolver(DestinationResolver destinationResolver) Set the The default resolver is a DynamicDestinationResolver. Specify a JndiDestinationResolver for resolving destination names as JNDI locations. | |
| setPubSubDomain | back to summary |
|---|---|
| public void setPubSubDomain(boolean pubSubDomain) Configure the destination accessor with knowledge of the JMS domain used. Default is Point-to-Point (Queues). This setting primarily indicates what type of destination to resolve if dynamic destinations are enabled.
| |