Show TOC

Sample Configuration File: JMS CSV Input AdapterLocate this document in the navigation structure

Sample adapter configuration file for the JMS CSV Input adapter.

<?xml version="1.0" encoding="utf-8"?>
<Adapter>
	<Name>JMS CSV Input</Name>
	<Description>An adapter which receives CSV string messages from a JMS server, transforms them to ESP data format and publishes to a stream.</Description>
	<Log4jProperty>./log4j.properties</Log4jProperty>
	<Cipher>
		<File>../../adapter.key</File>
  	</Cipher>
	<Modules>
		<Module type="transporter">
			<InstanceName>JmsInputTransporter</InstanceName>
			<Name>JmsInputTransporter</Name>
			<Next>CSVInputFormatter</Next>
			<BufferMaxSize>10240</BufferMaxSize>
			<Parameters>
				<JMSInputTransporterParameters>
					<ConnectionFactory>ConnectionFactory</ConnectionFactory>
					<JndiContextFactory>org.apache.activemq.jndi.ActiveMQInitialContextFactory</JndiContextFactory>
					<JndiURL>tcp://localhost:61616</JndiURL>
					<DestinationName>queue.jmscsv.test</DestinationName>
					<DestinationType>QUEUE</DestinationType>
					<MessageType>TEXT</MessageType>
					<ScanDepth>3</ScanDepth>
                    <!-- Uncomment the JndiSecurityPrincipal and JndiSecurityCredentials elements below and set appropriate values if the JMS server requires JNDI credentials -->
                    <!-- JndiSecurityPrincipal></JndiSecurityPrincipal -->
                    <!-- JndiSecurityCredentials encrypted="false"></JndiSecurityCredentials -->
                    <!-- Uncomment the Username and Password elements below and set appropriate values if the JMS server requires JMS connection credentials -->
                    <!-- Username></Username -->
                    <!-- Password encrypted="false"></Password -->	
				</JMSInputTransporterParameters>
			</Parameters>
		</Module>

		<Module type="formatter">
			<InstanceName>CSVInputFormatter</InstanceName>
			<Name>CsvStringToEspFormatter</Name>
			<Next>MyInStream_Publisher</Next>
			<Parallel>true</Parallel>
			<Parameters>
				<CsvStringToEspFormatterParameters>
					<HasHeader>true</HasHeader>
					<ExpectStreamNameOpcode>true</ExpectStreamNameOpcode>
				</CsvStringToEspFormatterParameters>
			</Parameters>
		</Module>

		<Module type="espconnector">
			<InstanceName>MyInStream_Publisher</InstanceName>
			<Name>EspPublisher</Name>
			<Parameters>
				<EspPublisherParameters>
				    <!--Uncomment the following 2 elements when you use 'start_adapter[.bat|.sh]' -->
					<!--ProjectName>EspProject1</ProjectName-->
					<!--StreamName>BaseInput</StreamName-->
					<MaxPubPoolSize>1</MaxPubPoolSize>
					<UseTransactions>false</UseTransactions>
					<GDMode>false</GDMode>
				</EspPublisherParameters>
			</Parameters>
			<BufferMaxSize>10240</BufferMaxSize>
		</Module>
	</Modules>

	<EspProjects>
		<EspProject>
			<Name>EspProject1</Name>
			<Uri>esp[s]://localhost:19011/sample_workspace/jms_csv_input</Uri>
			
			<Security>
				<User></User>
				<Password encrypted="false"></Password>
				<AuthType>user_password</AuthType>
			</Security>
		</EspProject>
	</EspProjects>
	<GlobalParameters></GlobalParameters>
</Adapter>