Treating POJOs like POGOs

java-thumbnail

This article is based on Making Java Groovyand the book will release on January 2011. It is being reproduced here by permission from Manning Publications. Manning publishes MEAP (Manning Early Access Program,) ebooks and pbooks. MEAPs are sold exclusively through Manning.com. All print book purchases include an ebook free of charge. When mobile formats become […]

What is Broad Assertion in Unit Testing in Java?

java-thumbnail

This article is based on Unit Testing in Java, to be published on Fall 2011.¬†It is being reproduced here by permission from Manning Publications.¬†Manning publishes MEAP (Manning Early Access Program,) ebooks and pbooks. MEAPs are sold exclusively through Manning.com. All print book purchases include an ebook free of charge. When mobile formats become available all […]

How to configure SwingXBuilder in Griffon

java-thumbnail

This article is based on Griffon in Action, to be published on September 2011. It is being reproduced here by permission from Manning Publications. Manning publishes MEAP (Manning Early Access Program,) ebooks and pbooks. MEAPs are sold exclusively through Manning.com. All print book purchases include an ebook free of charge. When mobile formats become available […]

Java Database Application with Apache Velocity

java-thumbnail

Java Database Application with Apache Velocity Introduction to Apache Velocity Please Refer the article Spring with Apache Velocity also read: Java Tutorials Java EE Tutorials Design Patterns Tutorials Java File IO Tutorials Introduction to JDBC JDBC stands for Java DataBase Connectivity. The JDBC API helps us to develop Java applications with data base connection. We […]

Jasper Reports and Data Sources

java-thumbnail

Introduction Jasper Report is a powerful open source reporting architecture. It is completely written in java and is full of features required for reporting. Following are some of the key features supported. also read: Java Tutorials Java EE Tutorials Design Patterns Tutorials Java File IO Tutorials Pixel-perfect and page-oriented reports for printing or continuous output […]

OSGi and Apache Felix 3.0

java-thumbnail

Beginner’s Guide The OSGi specification is a module system and service platform that implements a complete and dynamic component model. Wasn’t that a complicated definition! So how would you really use it to practical modular applications? Let this book break down the seemingly overwhelming OSGi standards for you by explaining Apache Felix‘s powerful architecture in […]

What is Immutable Objects in Java?

java-thumbnail

An immutable object is something whose state can’t be change after there creation, e.g. String objects. Once you have created a String object, you can’t alter this. Creating an Immutable object’s class Creating an immutable object’s class can be tricky. Minimal requirement to create an immutable object’s class is, make class and every member variable, […]

Novice way to implement a Singleton

java-thumbnail

I believe everyone starts (and even continues to do so) implementing Singleton pattern in following fashion: also read: Java Tutorials Java EE Tutorials Design Patterns Tutorials Java File IO Tutorials Do you find any problem in it? Well, I have!!! The contract of Singleton class can be broken. Let’s discuss Singleton pattern in Simple Threaded […]

What is Remote Debugging in Java?

java-thumbnail

Consider a scenario where you can’t run the application in your development environment, e.g. say your application can run only on a server machine (because it is dependent on some third party interface that are not accessible in your development machine) and you have to resolve a problem (bug). What you can do? The solution […]

Runtime.addShutdownHook()

java-thumbnail

Preface Every Java Program can attach a shutdown hook to JVM, i.e. piece of instructions that JVM should execute before going down. also read: Java Tutorials Java EE Tutorials Design Patterns Tutorials Java File IO Tutorials Problem A program may require to execute some pieces of instructions when application goes down. An application may go […]