Tim Driven Development | Test until the fear goes away
Tim Cooke wrote:There are many many ways for you to solve your problem, none of which "require" you to use Spring. You can of course if you wanted to but it wouldn't necessarily help.
You don't even need Java. I could probably write a bash or Python script in an afternoon that would do this (others more savvy with scripting could probably do it in 10 minutes).
Siddharth Bhargava wrote:I would like to use Spring only
Tim Driven Development | Test until the fear goes away
Tim Driven Development | Test until the fear goes away
Jayesh A Lalwani wrote:I would just implement this as a Quartz job that polls the location at schedule intervals. I'm not very familiar with Spring Integration. I don't know if it provides a better way
Siddharth Bhargava wrote:... we are using Spring ...
Tim Driven Development | Test until the fear goes away
Tim Cooke wrote:
Siddharth Bhargava wrote:... we are using Spring ...
Would I be assuming correctly if I took from this that you are writing a new feature for an existing application that uses Spring?
Regardless, I have a number of quesitons:
Polling: How often? Report success: How? UI output? Return value? Log message? DB call? Remote call? Report error: How? UI? Return value? Log? DB? Remote? Exception? System exit?
I still maintain that "Spring Integration" is not a thing. The Spring framework has a number of features that solve, or make easier, a number of problems but unfortunately in this instance I do not know what particular problem you are hoping to solve with it so cannot suggest how you would use it. To say you want to solve your problem with "Spring integration" just doesn't make sense as a sentence. Perhaps you can point us to the websites that you have found? That might at least help me understand what you think it will do for your application.
Unless of course you're talking about this Spring-Integration project?? In which case you are about to massively over engineer your application for no good reason and I would recommend you leave it alone and go with something much simpler.
Jesus Angeles wrote:Hi Siddharth,
Indeed, Spring Integration will give you a clean solution for that part of your system (polling for files).
Reading those links you gave would be very helpful.
Look for a simple file-polling example and understand it fully.
A good reference is the Spring Integration in Action book.
Jesus Angeles wrote:The error suggests a jar is missing in your classpath.
Tim Driven Development | Test until the fear goes away
Don't get me started about those stupid light bulbs. |