I have below requirements,
- Receiving file from diff systems and convert into JMS text message and send to IBM MQ
- Receiving message from IBM MQ and store into database.
- Display status of the messages and files with file name and timestamp in GUI.. I am planning to use spring batch to achieve solutions for this requirement ... All my messages and files needs to be triggered on real time (system should process immediately once the file arrived ). So I am planning to use spring integration ( message inbound and file inbound adaptors ).. So the listener will listen files in the queue and trigger the batch job once it arrived and the batch will convert the message into XML text and send to IBM MQ. now I want to stop the listener if there is any error happen during parsing or transmission .. Similar way I want to start the listener once issue is resolved.. What would be recommended solution for this issue ??