-
May 27th, 2009, 08:44 AM
#1
SPRING BATCH[2.0] integration with JMS
I am very much new to Spring batch .I want to build an application with Spring batch integrated with JMS. I run one sample project without JMS which directly validates afile ,read,tranform,write into database.
The structure is like this:
<bean id="tracker87Job" parent="simpleJob">
<property name="steps">
<bean id="step1" parent="simpleStep">
<property name="commitInterval" value="50" />
<property name="itemReader" ref="databrokerFileItemReader"/>
<property name = "itemProcessor" ref = "ediProcessor"/>
<property name="itemWriter">
<bean class="org.springframework.batch.item.file.EDIFile Writer">
<property name="dao" ref="ediDao" />
</bean>
</property>
</bean>
</property>
</bean>
<bean id="databrokerFileItemReader" class="org.springframework.batch.item.file.EDIFile Reader">
<property name="resource" value="classpath:data/databrokerjob/input/AVNET_2009051911015900.Edi"/>
<property name="lineMapper">
<bean class="org.springframework.batch.item.file.mapping .DefaultLineMapper">
<property name="lineTokenizer" ref="fixedFileDescriptor" />
<property name="fieldSetMapper">
<bean class="org.springframework.batch.item.file.mapping .DataBrokerFieldSetMapper" />
</property>
</bean>
</property>
</bean>
<bean id = "ediProcessor" class="org.springframework.batch.item.EDITransform ">
<property name = "manufacturerDao" ref = "manufacturerDao" />
<property name = "fulfillmentDao" ref = "fulfillmentDao" />
</bean>
<bean id="fixedFileDescriptor"
class="org.springframework.batch.item.file.transfo rm.PatternMatchingCompositeLineTokenizer">
<property name="tokenizers">
<map>
<entry key="HDR*" value-ref="headerRecordTokenizer"/>
<entry key="DTL*" value-ref="detailRecordTokenizer"/>
<entry key="LIN*" value-ref="lineRecordTokenizer"/>
</map>
</property>
</bean>
But i want put jms reader and jmwriter between file raeder and transformer
ExampleFileReader ->JMSWriter -> JMSQueue -> JMS Reader ->Transformer etc.
Can anybody help me implementing this requirement.
-
May 27th, 2009, 08:49 AM
#2
SPRING BATCH[2.0] integration with JMS
I am sorry it should be JMS instead JSM.its atypo....
-
May 28th, 2009, 12:30 PM
#3
Is it not possible, to re convert the message from mdb into file, and use the flatfile reader, writter and processor just as before?
-
May 28th, 2009, 11:18 PM
#4
we are trying to replace a system in place which is comprises on MDB and JMS(Topic and QUEUE)...............so this option is ruled out................
Can i get any really worthfull idea from any architecting experinced people in the springsource team.......That would be highly appreciated......
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules