Sonar Analysis From Eclipse

Sonar Analysis From Eclipse


Sonar is a great tool for ensuring quality and maintainable code. Sonar is like a code reviewer every developer should have. One shouldn’t wait for a formal code review and peer code review to find fault with one’s own code. So, the best way of writing quality code is to run a sonar analysis after coding every major functionality. To do that, once can integrate sonar with the IDE itself. This post is all about running local sonar analysis from ...
Tomcat Log4j Dynamic Logging

Tomcat Log4j Dynamic Logging


Tomcat Log4j Dynamic Logging Using log4j with DailyRollingFileAppender in Tomcat? Well, if you run Tomcat as a windows service, you might have noticed that your logs do not rotate daily.  The logs rotate only when the server is restarted. Although it works perfectly for a server on linux machine. But, tomcat when run as a windows service fail to rotate logs. It seems to be a common problem. I googled a lot for a solution, but didn’t find a solution, ...
Serialization and Constructor Invocations

Serialization and Constructor Invocations


Serialization and Constructor Invocations I heard some very strange things about serialization lately and decided to run some test to verify them. I first created a sample class that implements Serializable. The line 4 here, ensures that ‘SuperConstructor’ gets printed on my console whenever the constructor is invoked. The first weird thing, I was told about was, 1. When deserializing, the constructor of the target class is never invoked. For an average innocent bloke like me, that is a shocker. ...

Google Keynote 2013 Android


Google Keynote 2013 Android Three hours of  technical show of power and innovation. And I was literally awestruck.  And why not, Google has earned the bragging rights doing some amazing work. Google once again targeted on providing the flexibility and power to the developer. Google I/O Keynote 2013 featured most of the things Google has been up to. What amazed me was the absence of a full fledged presentation regarding the Google Glass. However, there were a few very appealing features. ...

JavaEE CDI in one page


I’ve been reading and checking out the (javaee cdi) CDI- Context and Dependency Injection in JavaEE lately. The more I read, more I fall in love with it. I’ll try and make the article short and less painful for you. And will quickly brush over the important concepts covered in the CDI. Important Basic Features one should know about 1. The Expression Language Names As the above link states that the expression language is a mechanism for communication between the presentation layer(web ...