spring-framework / org.springframework.jms.support.destination

Package org.springframework.jms.support.destination

Types

BeanFactoryDestinationResolver

open class BeanFactoryDestinationResolver : DestinationResolver, BeanFactoryAware

DestinationResolver implementation based on a Spring BeanFactory.

Will lookup Spring managed beans identified by bean name, expecting them to be of type javax.jms.Destination.

CachingDestinationResolver

interface CachingDestinationResolver : DestinationResolver

Extension of the DestinationResolver interface, exposing methods for clearing the cache.

JndiDestinationResolver

open class JndiDestinationResolver : JndiLocatorSupport, CachingDestinationResolver

DestinationResolver implementation which interprets destination names as JNDI locations (with a configurable fallback strategy).

Allows for customizing the JNDI environment if necessary, for example specifying appropriate JNDI environment properties.

Dynamic queues and topics get cached by destination name. As a consequence, you need to use unique destination names across both queues and topics. Caching can be turned off through the "cache" flag.

Note that the fallback to resolution of dynamic destinations is turned off by default. Switch the "fallbackToDynamicDestination" flag on to enable this functionality.

Exceptions

DestinationResolutionException

open class DestinationResolutionException : JmsException

Thrown by a DestinationResolver when it cannot resolve a destination name.