firstly i want to know how to intregate both ant & eclipse?
And then how use them to build a application.
This is a bit out of scope for this forum.
I recommend that you start by reading some general tutorials on Java, Eclipse, maven (instead of ant).
Then move on to overviews on Java EE, then some more tutorials on the technologies you choose for your application.
Then return here if you have deployment problems etc
Retrieving data ...