- Monday, February 15, 2010, 11:00
- Java
- 1,096 views
iText is a wonderful library if you want to generate PDFs in Java. It comes with a huge set of API to create/manage a PDF file. We already saw in our previous tutorial
how to generate a pdf file in itext and also
how to merge ...
Full story
- Wednesday, February 10, 2010, 15:12
- Java
- 5,071 views
Quote 1: Avoid creating unnecessary objects and always prefer to do Lazy Initialization
Object creation in Java is one of the most expensive operation in terms of memory utilization and performance impact. It is thus advisable to create or initialize an object only when it is required in the code.
public class Countries {
private List countries;
public ...
Full story
- Friday, January 22, 2010, 3:14
- Java, News
- 524 views
The European Commission on Thursday approved Oracle Corp.'s acquisition of Sun Microsystems after regulators were assuaged over the fate of an open-source database, James Gosling have paid respect to Sun Microsystem on his
blog. Please go to his blog and pay your respect to Sun.
Full story
- Thursday, December 24, 2009, 16:05
- How-To, Struts 2
- 3,479 views
Welcome to Part-3 of 7-part series of tutorials where we will go through different practical aspects of Struts2 Framework. In the last part we Created a
Basic Struts2 Application from Scratch. I strongly recommend you to go through the previous articles in case you are new to Struts2.
In this article we will learn how to ...
Full story
- Wednesday, December 23, 2009, 13:00
- Struts 2, Tutorial
- 5,586 views
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 ...
Full story
- Tuesday, December 22, 2009, 13:00
- Struts 2, Tutorial
- 3,339 views
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 ...
Full story
- Friday, December 11, 2009, 15:41
- Java
- 377 views
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. ...
Full story
- Thursday, December 10, 2009, 15:31
- Java
- 1,084 views
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 ...
Full story
- Monday, October 26, 2009, 14:01
- Java
- 6,294 views
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. ...
Full story
- Saturday, October 10, 2009, 18:47
- Featured, Java, Tutorial
- 6,633 views
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 ...
Full story