LibraryToggle FramesPrintFeedback

You can configure an endpoint to use a custom destination resolver in one of two ways. The recommended way is to configure the destination resolver as a bean and have the endpoint reference the destination resolver's bean. The other way is to explicitly include the destination resolver's configuration as a child of the endpoint.

As shown in Example 7.7, configuring an endpoint's destination resolver using a bean reference is a two step process:

  1. Configure a bean element for your destination resolver.

  2. Add a destinationResolver attribute that references the destination resolver's bean to your endpoint.

Example 7.8 shows an example configuration using the jms:destinationResolver element. This method is less flexible than the recommended method because other endpoints cannot reuse the destination resolver's configuration.

[1] If the value is false, a JMS queue will be returned.

Comments powered by Disqus