Deep cloning using in memory serialization in java

In demonstration program, I have created a demo class named DeepCloning. I have make use of serialization while make clone. Whenever clone method invoked on an instance of DeepCloning, it will return exact clone/ copy of that instance. For deep cloning, we have to first do the serialization and then deserialization. For serialization, I have ...

How to get description regarding maven plugin and parameters 1

How to get description regarding maven plugin and parameters
In this tutorial we will be checking how to display the description regarding maven plugin and parameters. Lets take an example of release plugin. You can also take all this description into a file by: In order to retrieve a full description of a plugin’s parameter, we need to execute the below command. Like below ...

Custom Maven Plugin — Hello World 1

Maven is – at its heart – a plugin execution framework. All work is done by plugins. Lets try to make one custom plugin. Make one maven project whose packaging should be of maven-plugin. Below is the pom file : Now make one java file say GreetingHello which will extend the class AbstractMojo provided by ...

JMS with HornetQ – JBoss 7 EAP 1

Lets make JMS app with HornetsQ as MOM. I make use of JBoss 7 EAP and exposed the topic so that i can remotely lookup that into my main program. First i added jms topic inside my standalone-full.xml file. Below is the Message Producer class: Below is the Message Consumer class:

CyclicBarrier And CountDownLatch in JAVA

According to java doc Cyclic Barrier is: A synchronization aid that allows a set of threads to all wait for each other to reach a common barrier point. CyclicBarriers are useful in programs involving a fixed sized party of threads that must occasionally wait for each other. Now why this barrier is called cyclic: The ...