+1  A: 

This is really only a part1 answer, and I also suggest splitting this into 2 questions.

The key to using different IDEs is to make sure none of your build/code is IDE dependent. The most typical problem is that you check in the file containing the application's classpath (the .classpath file in eclipse for example). Instead, you should use an external dependency management system such as maven or ivy (ivy works if you use ant, but maven is both a build tool AND a dependency management system so I would recommend maven if you can). Any IDE worth its weight will have plugins to support ant, ivy and maven, so as long as the developers have the plugin, they just point to the appropriate ant or maven build files. Maven's website is http://maven.apache.org/ and Ivy's website is http://ant.apache.org/ivy/.

Jeff Storey
Hi Jeff, please refer comment of this question.. I also feel that.. Thanks..
Nachiket
I have started using Maven.. Its cool.. but have to understand lots of new concepts like Snapshot, local repository, plugin etc. But its really cool.. and very useful.. :)
Nachiket
Yes, there are definitely some new concepts in maven to learn, but the user guide http://maven.apache.org/guides/getting-started/index.html might help. Once you get over the initial learning curve, in my opinion, you'll wonder how you ever did without it, and writing ant builds will become a thing of the past.
Jeff Storey
+1  A: 

part2:

for the second part, consider you can only gain about 4-5 seconds when switching from tomcat to jetty.

typically the startup of a servlet container takes 30-60 seconds. for a real speed improvement consider using JRebel. this allows you to see most changes in code instantly.

Andreas Petersson
Thanks.. i am already using it..
Nachiket
A: 
  • Use maven for the build (and everything else maven can do) and the IDE of choice for coding. Eclipse, IDEA, Netbeans, they all integrate with Maven.

  • AFAIK, there is still no server plugin in Netbeans for Jetty (see Issue 153500). But it should be possible to start Jetty in debug mode and to attach a remote debugger from Netbeans. Or you could use maven and the maven jetty plugin :)

Pascal Thivent
Nachiket