A critic view on JSF Framework

JSF is becoming more popular framework for user interface layer development, many architects and companies assuming that Struts is becoming outdated and JSF is catching up the market. I am not sure whether it is true at this point of time. However I would like express my critic on the advantages and disadvantages of JSF.

(more…)

2 comments April 28, 2008

Don’t let hype push you select wrong technologies

Most of you might agree with title of this blog. But how many of us or our managers/ architects follow on day to day basis? It is still a big question mark.

(more…)

Add comment April 5, 2008

What is the better approach to implement Singleton pattern?

Singleton is one of the frequently used and easily understandable design pattern. Most of the tutorials and books give example of making the constructor as private and exposing a static method which will provide single instance. The common example they use is Runtime class of JRE.

Is making constructor as private is the only way to implement singleton pattern? Is that the best way to implement singleton pattern?

(more…)

3 comments March 27, 2008

Java: How to stop a thread?

This is one of the frequently asked questions in the interview. Most of the interviewer expect the below answer.
“Thread.stop() method is deprecated, so a boolean variable has to be introduced in thread class and run method should check the boolean variable whether to continue execution or come out of run() method”.

In the above solution doesn’t address the issue, what if the thread is in wait state?

Thread.interupt() method can be invoked to make thread come out of wait state.
For better understanding read the below link
http://java.sun.com/j2se/1.4.2/docs/guide/misc/threadPrimitiveDeprecation.html

Add comment March 24, 2008

Volatile and doubled checked locking in Java

During my Java training, I read about volatile keyword, but didn’t get clear understanding. Recently when I wrote a singleton class using double checked locking, PMD code reviewer gave a warning not to use volatile. Later I started exploring on double checked locking issue, here is my observation.

(more…)

Add comment March 16, 2008

Spring Web Flow / Shale Dialog

Recently I got an opportunity to explore Spring Web FlowExternal Link framework. Later I came to know that Shale DialogExternal Link also solves the same problem. JBoss Seam too solves the same problem.

(more…)

Add comment March 9, 2008

A shift from Aspire to Bally

Friends, I moved from Aspire Systems to Bally Technologies on Feb 1, 2008.

Aspire colleague: I am extremely sorry for not meeting you personally due to last minute handover process. Keep in touch.

I would like to talk about my experience in jelling with existing team on new job.

(more…)

Add comment February 18, 2008

Importance of specifying initial capacity while instantiating ArrayList and HashMap

ArrayList and HashMap are a few of the most frequently used data structures in Java development. So I would like to talk about the importance of instantiating these classes with initial capacity. Let me explain how the ArrayList works internally, so that you get a good insight. HashMap works almost the same way an ArrayList works, so I haven’t covered the details of that separately. But all the tips given below are applicable for HashMap as well.

(more…)

2 comments February 5, 2008

What is the magic Serializable interface does in Java?

I was trying to understand the concept behind the java serialization.

I know that java serialization is required when you want to save state of an object outside JVM. My thinking was that why don’t Sun make all classes as Serializable by default? Why serialization is required to persist an object?

(more…)

2 comments January 27, 2008

A simple dependency injection component

Guice is alternative to Spring framework except life cycle management.

I like Guice framework over Spring for the following reason.

(more…)

Add comment January 18, 2008

Previous Posts


Categories

RSS Feed

My Favorite Tech Quote

Complexity is a sign of technical immaturity. Simplicity of use is the real sign of a well design product whether it is an ATM or a Patriot missile.
 
-- Daniel T. Ling

My Favorite Life Quote

எது நடந்ததோ அது நன்றாகவே நடந்தது; எது நடக்கிறதோ அதுவும் நன்றாகவே நடக்கிறது; எது நடகவிருகிறதோ அது நன்றாகவே நடக்கும்.

- பகவத்கீதை