Provider endpoint configuration is specified using the jms:destination
configuration element. Using this configuration element, you can specify the provider endpoint's behaviors using the jms:runtimePolicy
element. When configuring a provider endpoint you can use the following jms:runtimePolicy
attributes:
Table 9.4. Provider Endpoint Configuration
Attribute | Description |
---|---|
useMessageIDAsCorrealationID
| Specifies whether the JMS broker will use the message ID to correlate messages. The default is false . |
durableSubscriberName
| Specifies the name used to register a durable subscription. |
messageSelector
| Specifies the string value of a message selector to use. For more information on the syntax used to specify message selectors, see the JMS 1.1 specification. |
transactional
| Specifies whether the local JMS broker will create transactions around message processing. The default is false .[a] |
[a] Currently,setting the |
Example 9.8 shows a FUSE Services Framework configuration entry for configuring a provider endpoint.
Example 9.8. Configuration for a Provider Endpoint
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ct="http://cxf.apache.org/configuration/types" xmlns:jms="http://cxf.apache.org/transports/jms" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd" http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd http://cxf.apache.org/transports/jms http://cxf.apache.org/schemas/configuration/jms.xsd"> ... <jms:destination name="{http://cxf.apache.org/jms_endpt}HelloWorldJMSPort.jms-destination"> ... <jms:runtimePolicy messageSelector="cxf_message_selector" useMessageIDAsCorrelationID="true" transactional="true" durableSubscriberName="cxf_subscriber" /> ... </jms:destination> ... </beans>