You instruct an endpoint to load FUSE Services 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 Services Framework runtime. This path is relative to the location of the endpoint's xbean.xml file.
![]() | Tip |
|---|---|
The FUSE Services Framework configuration file should be stored in the endpoint's service unit. |
Each endpoint uses a separate FUSE Services Framework runtime. If your service unit creates multiple endpoints, each endpoint can load its own FUSE Services Framework runtime configuration.
Example 14.1 shows the configuraiton for a provider endpoint that loads a FUSE Services Framework configuration file called jms-config.xml.
Example 14.1. Provider Endpoint that Loads FUSE Services 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>