Bharat Sharma

This user hasn't shared any biographical information

Homepage: https://bharatonjava.wordpress.com

Exchanger

Java concurrency API provides a synchronization utility java.util.concurrent.Exchanger that allows two threads to exchange data. Exchanger provides a common point where two threads arrive and exchange data between them such that data of first thread goes to the second thread and data of second thread goes to first. Exchanger basically creates a barrier at which […]

, , ,

Leave a comment

Raspberry pi : Installing Tomcat

Well I think raspberry pi 3 (Model B) is a very capable machine and can very well be used as a server for hosting some lightweight web application. I would certainly not want to run an expensive desktop server 24 X 7 and pay huge electric bills just for running a web application for limited […]

, ,

Leave a comment

Raspberry pi : Installing Citrix Receiver

I have been using raspberry pi 3, Model B as my primary computer for a few days now. I have installed Raspbian Jessie on it. Through this series of posts i plan to share details of how i set it up for my everyday use. First requirement for using it as my personal computer was […]

, ,

Leave a comment

Batch Processing using JDBC

,

Leave a comment

Using local thread variables

Shared data is one of the most critical aspect of concurrent programming. When you create an instance of a class that implements Runnable interface or extends Thread class and use same object to create multiple Threads then all the threads share same attributes. This means if you change any attribute in one thread, all threads […]

, , ,

Leave a comment

Removing border from primefaces <p:layout>

Primefaces provides an excellent component <p:layout> to lay structure your website, but it has an annoying border which makes everything look cluttered. Here is how you can get rid of that (at least for now) I know it is bad, but i am no CSS guru! Just figured out that this works!

, ,

1 Comment

Get source JARs and Javadoc from Maven repository

Sometimes you may want to use Javadoc feature of your eclipse IDE so that you may be able to refer the source code and javadoc while using some API. Option 1 Following maven commands come in handy for these purposes: First command attempts to download *-source.jar files for the dependencies listed in your pom.xml and […]

Leave a comment