Show TOC

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

Sample adapter configuration file for the JMS Object Input adapter.

<?xml version="1.0" encoding="utf-8"?>
<Adapter>
    <Name>JMS Object Input</Name>
    <Description>An adapter which receives an object array from JMS server, transforms it 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>ObjectListToEspFormatter</Next>
            <BufferMaxSize>10240</BufferMaxSize>
            <Parameters>
                <JMSInputTransporterParameters>
                    <ConnectionFactory>ConnectionFactory</ConnectionFactory>
                    <JndiContextFactory>org.apache.activemq.jndi.ActiveMQInitialContextFactory</JndiContextFactory>
                    <JndiURL>tcp://localhost:61616</JndiURL>
                    <DestinationName>queue.array.test</DestinationName>
                    <DestinationType>QUEUE</DestinationType>
                    <MessageType>OBJARRAY</MessageType>
                    <!-- 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>ObjectListToEspFormatter</InstanceName>
            <Name>ObjectListToEspFormatter</Name>
            <Next>MyInStream_Publisher</Next>
            <Parallel>true</Parallel>
            <Parameters>
            </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_objlist_input</Uri>
           
            <Security>
                <User></User>
                <Password encrypted="false"></Password>
                <AuthType>user_password</AuthType>
            </Security>
        </EspProject>
    </EspProjects>
    <GlobalParameters></GlobalParameters>
</Adapter>