The SAP component maintains three maps to store destination data, server data
and repository data. The component’s property,
destinationDataStore, stores destination data keyed by
destination name, the property, serverDataStore, stores server data
keyed by server name and the property, repositoryDataStore, stores
repository data keyed by repository name. These configurations must be passed to
the component during its initialization.
The following example shows how to configure a sample destination data store
and a sample server data store in a Blueprint XML file. The
sap-configuration bean (of type
SapConnectionConfiguration) will automatically be injected into
any SAP component that is used in this XML file.
<?xml version="1.0" encoding="UTF-8"?>
<blueprint ... >
...
<!-- Configures the Inbound and Outbound SAP Connections -->
<bean id="sap-configuration"
class="org.fusesource.camel.component.sap.SapConnectionConfiguration">
<property name="destinationDataStore">
<map>
<entry key="quickstartDest" value-ref="quickstartDestinationData" />
</map>
</property>
<property name="serverDataStore">
<map>
<entry key="quickstartServer" value-ref="quickstartServerData" />
</map>
</property>
</bean>
<!-- Configures an Outbound SAP Connection -->
<!-- *** Please enter the connection property values for your environment *** -->
<bean id="quickstartDestinationData"
class="org.fusesource.camel.component.sap.model.rfc.impl.DestinationDataImpl">
<property name="ashost" value="example.com" />
<property name="sysnr" value="00" />
<property name="client" value="000" />
<property name="user" value="username" />
<property name="passwd" value="passowrd" />
<property name="lang" value="en" />
</bean>
<!-- Configures an Inbound SAP Connection -->
<!-- *** Please enter the connection property values for your environment ** -->
<bean id="quickstartServerData"
class="org.fusesource.camel.component.sap.model.rfc.impl.ServerDataImpl">
<property name="gwhost" value="example.com" />
<property name="gwserv" value="3300" />
<!-- The following property values should not be changed -->
<property name="progid" value="QUICKSTART" />
<property name="repositoryDestination" value="quickstartDest" />
<property name="connectionCount" value="2" />
</bean>
</blueprint>