Is it possible to use SONAR in Teamsite to monitor the code quality during development?
Yep, I do that all the time. You wouldn't hook it up direct to TeamSite though. Ideally you're managing your code in a separate source control system and building a JAR file from there. The next step is to have a continuous integration system automate your builds, and then you can hook up sonar to that.