Hi Muthu,
First of all,
Ant is a really cool building tool. To install it, you'll need to go download it from apache's site. I think you need to add the bin directory to your path, and maybe set an environment variable to make it work.
You will know it works when you type "ant" at the commnd prompt, and it says "build.xml does not exist" or something like that.
Once and is installed, I'd recommend reading up a little on ant from that same site in the user manual. It's not too bad. Anyway, your build.xml should have targets in it that make your war and ear. That's the "create" part of your question.
For deploying with jboss, it's not that bad. After the ear/war is created, you can put that file into the deploy directory. If you didn't change anything about jboss, it will be here:
${wherever.jboss.is}/server/default/deploy.
Everything is hot-deployed, so if you're running jboss at the time, it will go ballistic with messages as it deploys. If you put a new version of the ear/war in there, it will undeploy the old one and deploy the new one. When it is done, it will tell you, and
you should be able to start running the code.
The web server listens on port 8080 by default, so
http://localhost:8080/ will be your starting point.
Welcome to jboss! Best of luck!!!
--Jeff