interface CachingDestinationResolver : DestinationResolver
Extension of the DestinationResolver interface, exposing methods for clearing the cache.
Author
Juergen Hoeller
Since
2.0
abstract fun clearCache(): Unit
Clear the entire destination cache. To be called in case of general JMS provider failure. |
|
abstract fun removeFromCache(destinationName: String): Unit
Remove the destination with the given name from the cache (if cached by this resolver in the first place). To be called if access to the specified destination failed, assuming that the JMS Destination object might have become invalid. |
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 Note that the fallback to resolution of dynamic destinations is turned off by default. Switch the |