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.
Author
Mark Pollack
Author
Juergen Hoeller
Since
1.1
See Also
#setJndiTemplate#setJndiEnvironment#setCache#setFallbackToDynamicDestination
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 Note that the fallback to resolution of dynamic destinations is turned off by default. Switch the |
open fun clearCache(): Unit |
|
open fun removeFromCache(destinationName: String): Unit |
|
open fun resolveDestinationName(session: Session, destinationName: String, pubSubDomain: Boolean): Destination |
|
open fun setCache(cache: Boolean): Unit
Set whether to cache resolved destinations. Default is "true". This flag can be turned off to re-lookup a destination for each operation, which allows for hot restarting of destinations. This is mainly useful during development. Note that dynamic queues and topics get cached by destination name. As a consequence, you need to use unique destination names across both queues and topics. |
|
open fun setDynamicDestinationResolver(dynamicDestinationResolver: DestinationResolver): Unit
Set the DestinationResolver to use when falling back to dynamic destinations. The default is Spring's standard DynamicDestinationResolver. |
|
open fun setFallbackToDynamicDestination(fallbackToDynamicDestination: Boolean): Unit
Set whether this resolver is supposed to create dynamic destinations if the destination name is not found in JNDI. Default is "false". Turn this flag on to enable transparent fallback to dynamic destinations. |