Show TOC

Sample Configuration Files for the RFC Output AdapterLocate this document in the navigation structure

Sample configuration files for the RFC Output adapter are located in the $STREAMING_HOME\adapters\rfc\examples directory on Windows or the $STREAMING_HOME/adapters/rfc/examples directory on UNIX.

Here is a sample configuration file for a simple output adapter.

<?xml version="1.0" encoding="utf-8"?>
<Adapter>
	<Name>RFC Output Adapter</Name>
	<Description>This output adapter retrieves data from a stream and sends it to an SAP system through RFC</Description>
	<ControlPort>19051</ControlPort>
	<Modules>
		<Module type="espconnector">
			<InstanceName>OutStream_Subscriber</InstanceName>
			<Name>EspSubscriber</Name>
			<Next>RFCOutputTransporter</Next>
			<Parameters>
				<EspSubscriberParameters>
					<ProjectName>EspProject2</ProjectName>
					<StreamName>MyInStream</StreamName>
<!--
					<GDMode>false</GDMode>
					<GDKeyColumnName>gdKey</GDKeyColumnName>
					<GDOpodeColumnName>gdOpcode</GDOpodeColumnName>
					<GDBatchSize>5</GDBatchSize>
					<GDPurgeInterval>300</GDPurgeInterval>
					<GDControlStream>W1_truncate</GDControlStream>
-->
				</EspSubscriberParameters>
			</Parameters>
		</Module>
	
		<Module type="transporter">
			<InstanceName>RFCOutputTransporter</InstanceName>
			<Name>RFCOutputTransporter</Name>
			<Parameters>
				<RFCOutputTransporterParameters>
					<Host>hostname</Host>
					<SystemNumber>00</SystemNumber>
					<Client>000</Client>
					<SAPUser>user</SAPUser>
					<SAPPassword encrypted="false">password</SAPPassword>
					<Keystore>keystore.jks</Keystore>
					<KeystorePassword>password</KeystorePassword>
					<BatchSize>0</BatchSize>
					<RFC>
						<Function>ESP_DEV_INSERT_TABLE</Function>
						<Mapping>mapping.xml</Mapping>
					</RFC>
				</RFCOutputTransporterParameters>
			</Parameters>
		</Module>
	</Modules>
	
	<EspProjects>
		<EspProject>
			<Name>EspProject2</Name>
			<Uri>esp[s]://localhost:19011/w1/p1</Uri>
			
			<!--can specify multiple uri’s -->
			<Security>
				<User>user</User>
				<Password encrypted="false">password</Password>
				<AuthType>user_password</AuthType>
				<!--	
				<RSAKeyStore>/keystore/keystore.jks</RSAKeyStore>
				<RSAKeyStorePassword>password</RSAKeyStorePassword>
				-->
			<!--
				<KerberosKDC>KDC</KerberosKDC>
				<KerberosRealm>REALM</KerberosRealm>
				<KerberosService>service/instance</KerberosService>
				<KerberosTicketCache>/tmp/krb5cc_user</KerberosTicketCache>
				-->
				<EncryptionAlgorithm>RSA</EncryptionAlgorithm>
			</Security>
		</EspProject>
	</EspProjects>
	<GlobalParameters></GlobalParameters>
</Adapter>

Here is a sample configuration file for an output adapter with guaranteed delivery enabled.

<?xml version="1.0" encoding="utf-8"?>
<Adapter>
	<Name>RFC Output Adapter</Name>
	<Description>This output adapter retrieves data from a stream and sends it to an SAP system through RFC</Description>
	<ControlPort>19051</ControlPort>
	<Modules>
		<Module type="espconnector">
			<InstanceName>OutStream_Subscriber</InstanceName>
			<Name>EspSubscriber</Name>
			<Next>RFCOutputTransporter</Next>
			<Parameters>
				<EspSubscriberParameters>
					<ProjectName>EspProject2</ProjectName>
					<StreamName>W1_log</StreamName>
					<GDMode>true</GDMode>
					<GDKeyColumnName>gdKey</GDKeyColumnName>
					<GDOpodeColumnName>gdOpcode</GDOpodeColumnName>
					<GDBatchSize>3</GDBatchSize>
					<GDPurgeInterval>300</GDPurgeInterval>
					<GDControlStream>W1_truncate</GDControlStream>
				</EspSubscriberParameters>
			</Parameters>
		</Module>
	
		<Module type="transporter">
			<InstanceName>RFCOutputTransporter</InstanceName>
			<Name>RFCOutputTransporter</Name>
			<Parameters>
				<RFCOutputTransporterParameters>
					<Host>hostname</Host>
					<SystemNumber>00</SystemNumber>
					<Client>000</Client>
					<SAPUser>user</SAPUser>
					<SAPPassword encrypted="false">password</SAPPassword>
					<Keystore>keystore.jks</Keystore>
					<KeystorePassword>password</KeystorePassword>
					<BatchSize>0</BatchSize>
					<RFC>
						<Function>ESP_DEV_INSERT_TABLE</Function>
						<Mapping>mapping.xml</Mapping>
					</RFC>
				</RFCOutputTransporterParameters>
			</Parameters>
		</Module>
	</Modules>
	
	<EspProjects>
		<EspProject>
			<Name>EspProject2</Name>
			<Uri>esp[s]://localhost:19011/w1/p1</Uri>
			
			<!--can specify multiple uri’s -->
			<Security>
				<User>user</User>
				<Password encrypted="false">password</Password>
				<AuthType>user_password</AuthType>
				<!--	
				<RSAKeyStore>/keystore/keystore.jks</RSAKeyStore>
				<RSAKeyStorePassword>password</RSAKeyStorePassword>
				-->

				<!--
				<KerberosKDC>KDC</KerberosKDC>
				<KerberosRealm>REALM</KerberosRealm>
				<KerberosService>service/instance</KerberosService>
				<KerberosTicketCache>/tmp/krb5cc_user</KerberosTicketCache>
				-->
				<EncryptionAlgorithm>RSA</EncryptionAlgorithm>
			</Security>
		</EspProject>
	</EspProjects>
	<GlobalParameters></GlobalParameters>
</Adapter>