META-INF.batch-jobs.amqpReaderTest.xml Maven / Gradle / Ivy
The newest version!
<?xml version="1.0" encoding="UTF-8"?> <!-- Copyright (c) 2016 Red Hat, Inc. and/or its affiliates. This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which is available at https://www.eclipse.org/legal/epl-2.0/ SPDX-License-Identifier: EPL-2.0 --> <job id="amqpReaderTest" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/jobXML_1_0.xsd" version="1.0"> <step id="amqpReaderTest.step1"> <chunk item-count="100"> <reader ref="jmsItemReader"> <properties> <!--<property name="connectionFactoryLookupName" value="/cf"/>--> <!--<property name="destinationLookupName" value="/queue/queue1"/>--> <!-- wait for 2 seconds for any more messages --> <property name="receiveTimeout" value="2000"/> <property name="messageSelector" value=""/> <property name="sessionMode" value="DUPS_OK_ACKNOWLEDGE"/> </properties> </reader> <!-- this writer configuration is the same as the writer in JdbcReaderTest.xml --> <writer ref="csvItemWriter"> <properties> <property name="resource" value="#{jobParameters['writeResource']}"/> <property name="beanType" value="java.util.Map"/> <property name="writeMode" value="overwrite"/> <property name="header" value="Date,Time,Open,High,Low,Close,Volume"/> </properties> </writer> </chunk> </step> </job>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy