Welcome to the Part 2 of 7-part series where we will explore the world of Struts 2 Framework. In
previous article we went through the basics of Struts2, its Architecture diagram, the request processing lifecycle and a brief comparison of Struts1 and Struts2. If you have not gone through the previous article, I ...
Lot of times I have been asked by users on this site to write tutorial about Struts 2 Framework. My previous tutorial on
Creating Struts Application in Eclipse is one of the most viewed article on this site.So lets begin Part 1 of 7-parts series tutorials on Struts 2 Framework. In these tutorials we will discuss ...
Synopsis This note deals with AMQP, and some implementations, especially Qpid and ActiveMQ.Introduction AMQP stands for Advanced Messaging Queuing Protocol. It is a standard for cross platform messaging. It is a wire protocol and aims to enable functional compatibility between clients (from various platforms) and messaging brokers.It is pretty comprehensive and aims to cover all distributed business scenarios. ...
Synopsis This note describes a few simple commands on how to view the RAM and CPU usage of your Java process. It provides brief pointers on how to identify the influencing parameters and how to tweak it.Memory Java Heap The heap size of your Java process can be controlled by using a combination of –Xmx and –Xms. The heap size ...
Java Properties files are amazing resources to add information in Java. Generally these files are used to store static information in key and value pair. Things that you do not want to hard code in your Java code goes into properties files.Although there are multiple ways of loading properties file, I will be focusing on loading the resource bundle files from class path resources. ...
Inner classes, also called Nested Classes, are nothing but classes that are defined within other classes. The nesting is a relationship between classes, not objects.Inner classes have clearly two benefits, name control & access control. In Java, this benefit is not as important because Java packages give the name control.Java inner classes have feature that ...
Update: This feature has been removed from the final feature list that is being included in Java 7. Thanks @Stephen and @Stefan for the comments. Please refer to
Project Coin for more details.NullPoniterException is one of the most common exception encountered in Java programming. When I searched "NullPointerException" in Google, it gave about ...
Watch this ad. Really, Technology changes the way we live our lives.
Thought of sharing following code with you all. It is a small code snippet that uses SMTP in Java to login into GMail and send email using ones GMail account.String host = "smtp.gmail.com"; String from = "username"; String pass = "password"; Properties props = System.getProperties(); props.put("mail.smtp.starttls.enable", "true"); // added this line ...
If you are writing Java classes and distributing them over the Internet, you should know that people can reverse-engineer, disassemble, or
decompile your classes into Java source code. One of such decompiler is JAD. In
this article we discuss about the usage of JAD to decompile the
Java class.So to make the job ...