You instruct an endpoint to load Fuse Service Framework runtime configuration using the busCfg
attribute. Both the provider
element and the consumer
element accept this attribute. The attribute's value is the path to a file containing configuration information used by the Fuse Service Framework runtime. This path is relative to the location of the endpoint's xbean.xml
file.
![]() | Tip |
---|---|
The Fuse Service Framework configuration file should be stored in the endpoint's service unit. |
Each endpoint uses a separate Fuse Service Framework runtime. If your service unit creates multiple endpoints, each endpoint can load its own Fuse Service Framework runtime configuration.
Example 14.1 shows the configuraiton for a provider endpoint that loads a Fuse Service Framework configuration file called jms-config.xml
.
Example 14.1. Provider Endpoint that Loads Fuse Service Framework Runtime Configuration
<beans xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0"
xmlns:greeter="http://cxf.apache.org/jms_greeter"
xmlns:test="http://test">
<cxfbc:provider wsdl="classpath:jms_greeter.wsdl"
service="greeter:JMSGreeterService"
endpoint="GreeterPort"
interfaceName="greeter:JMSGreeterPortType"
useJBIWrapper="false"
busCfg="./jms-config.xml" />
</beans>