spring-framework / org.springframework.jms.support.destination / JndiDestinationResolver / <init>

<init>

JndiDestinationResolver()

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.

Author
Mark Pollack

Author
Juergen Hoeller

Since
1.1

See Also
#setJndiTemplate#setJndiEnvironment#setCache#setFallbackToDynamicDestination