Hey Yong, thanks for reply.
I created jndi.properties file but still I'm getting "Need to specify ...." error
I guess the name "ConnectionFactory" is either not found or should be written in some other way.
I've checked various tutorials on the net but none of them tell which jar file(s) i've to put in classpath.