@FunctionalInterface public interface DestinationResolver
JmsTemplate for resolving
destination names from simple
Strings to actual
Destination implementation instances.
DestinationResolver implementation used by
JmsTemplate instances is the
DynamicDestinationResolver class. Consider using the
JndiDestinationResolver for more advanced scenarios.
|Modifier and Type||Method and Description|
Resolve the given destination name, either as located resource or as dynamic destination.
Destination resolveDestinationName(Session session, String destinationName, boolean pubSubDomain) throws JMSException
session- the current JMS Session (may be
nullif the resolver implementation is able to work without it)
destinationName- the name of the destination
trueif the domain is pub-sub,
JMSException- if the JMS Session failed to resolve the destination
DestinationResolutionException- in case of general destination resolution failure