Sorry, my answer was not complete… There are 2 samples that use JMS.
In both cases, the DestinationResolver
interface is used to resolve if it’s a queue or topic being used to send or receive. The default in this interface is queue.
The send sample references a property called setPubSubDomain
which defaults to false, thereby indicating a queue.
Since the destination is resolved to a queue in both cases, a JNDI lookup for destination is not needed and no object is created in JNDI.