Oct 31 2014

Java Transient and Volatile Keywords

Transient Keyword: Transient Keyword marks a member variable not to be serialized when it is persisted to streams of bytes. When an object is transferred through the network, the object needs to be ‘serialized’. Serialization converts the object state to serial bytes. Those bytes are sent over the network and the object is recreated from those …

Continue reading »

Sep 15 2014

Configuring two way SSL in Tomcat

Configuring two way SSL in Tomcat : Setting up Tomcat to provide self-signed SSL certificates allowing secure client/server communication and relatively easy to set up. Java provides a handy command-line tool called keytool that you can use to generate keystores. Generate the Client and Server Keystores : By following the instructions below, you will create …

Continue reading »

Aug 28 2014

Java EE 8 Takes Off

java ee 8

Java EE 8 is now officially launched as JSR 366 via the JCP process. As you might have expected the primary focus areas are HTTP 2/HTML 5 support, CDI/managed bean alignment, cloud support and Java SE alignment. Here is some of the very high level content: Web Standards HTTP 2 Server-Sent Events (SSE) JSON binding …

Continue reading »

Jul 09 2014

Differences and Similarities between HashSet TreeSet and LinkedHashSet

Introduction: TreeSet, LinkedHashSet and HashSet are implementation of Set interface from that, they follows contract of Set interface i.e. they do not allow duplicate elements. Now in this post we will see the difference between HashSet, TreeSet and LinkedHashSet on different points like ordering elements, allowing null and performance ..etc. Details of HashSet TreeSet and LinkedHashSet: Main feature of HashSet is …

Continue reading »

Mar 13 2014

HTTP status codes and associated messages might returned from the Web Servers

List of HTTP status codes and associated messages that might be returned from the Web Servers,

Continue reading »

Mar 09 2014

How to re-load properties files without restarting server in java

Restart an application-server (servlet-container) means restart all the web-apps that are running under that application-server, with resulting unavailability of services. For this we’ll use the Java class PropertiesConfiguration available in the Apache Common Configuration library. This class allow to bind properties file to a PropertiesConfiguration Java Object through which read the single properties.

Continue reading »