0
votes

I'm brand new to Spring Integration, and while trying to discover all the functionality it provides, find myself a bit lost with some of its syntax.

Let me explain what do i need, and how do i think it's the way to implement it.

I have an external process that send messages to an ActiveMQ Queue ( standard jms ), and i do need a product that

  • Receive the messages from the queue
  • Transform and combine the messages ( to send 1 file with 100 message instead of 100 files with 1 message )
  • Deliver the results to a ftp server

So, i do believe that to accomplish this, i need :

  1. jms-inbound-channel
  2. Service aggregator ( i need to combine 100 messages into one )
  3. Ftp outboud channel

Am i missing something ?

1
hey josete: could you please share sample code for JMS-FTP integration? - Sai prateek

1 Answers

1
votes

For #2 you can use a <file:outbound-channel-adapter/> to APPEND to the file and then use some other criteria to determine when to send that file to the <ftp:outbound-channel-adapter/>.

You also might find it better to use a <jms:message-driven-channel-adapter/> rather than polling the inbound adapter.