Java – spring batch and integration

I'm a beginner in spring. I have to do a project for the school What kind of projects can I use spring batch and integration for I know I can write files to directories, write, read and modify comma separated files, but I can't describe a scenario where these technologies can be combined

Solution

I am not an expert in spring or spring batch or spring integration myself, but I can tell you a practical task. I must use all these in my organization to meet the requirements

Our company will take credit cards from our customers when they register and charge them every 30 days Therefore, every day we must see who is on the 30th day and automatically re - serve them through charging Therefore, I must send the data to the bank every day

Step 1: I must write a program to obtain the credit card details of customers due on the same day from our security database through a batch program, and write the content into the temporary location of our company's server in the specific format required by the bank as a ". TXT" file (for example: / user / someuser / endofdaytransaction / DD mm yyyy. Txt)

Step 2: as long as the content (DD mm yyyy. Txt) is available in this directory (/ user / oneworld / endofdaytransaction /), I must connect to the SFTP server of the bank and transfer the file to the directory owned by the bank for us

I use spring batch for step: 1. The batch job is triggered by the quartz scheduler at 5 p.m. every day. Spring integration for step: 2 continues to poll the directory and transfer the file to the bank once it is found

I also see from the spring documentation that I can mix and match these technologies, that is, I can avoid writing to temporary directories and require spring integration to write directly to the bank's SFTP server

Other practical examples I can think of: I have at & T and order automatic payment, that is, they charge me every 30 days and keep my Internet and telephone services active I have provided at & T bank credit card details They aggregate all credit cards (subscribers) to be billed and send the data to visa or Mastercard. They need to charge daily at a specific time as a batch file I hope you can mention steps 1 and 2 I mentioned Happy learning!

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>