Home » Author Archives: Dinuka Arseculeratne

Author Archives: Dinuka Arseculeratne

A little bit on the JVM and JIT

java-logo

As you might be aware, the JVM (Java Virtusal Machine) is what makes it possible for Java to adhere to the write-once-run-anywhere paradigm. At its core, the JVM consists of the following components: Heap Stack PermGen and Method Area JIT Compiler Code cache     The heap is where memory is allocated for every new operator you use during the ...

Read More »

Let us write a document style Web Service

java-interview-questions-answers

You might be aware that there are mainly four different styles of web services we can make use of. They are as follows: Document/Literal Document/Literal Wrapped RPC/Encoded RPC/Literal Of course the RPC/Encoded style is now deprecated. If you are interested you can read up on the different styles of web services and their pros on cons on this very comprehensive ...

Read More »

SuperMan bound by Java Monitors

java-logo

Its a dark time in the life of Super Man. Jor-El wants him to go on a voyage to prepare him for his ultimate destiny. Yet the Earth is faced with dooms-day and the Justice League needs their Man of Steel in action to save the world. But you cant do both at the same time since we have just ...

Read More »

Dev vs QA, should there really be a distinction?

software-development-2-logo

We had our scrum of scrum meetings last Wednesday where all scrum masters meet up with our line manager to discuss issues, bottlenecks and success stories of our previous sprint. One issue highlighted was the fact that sometimes the QA(Quality assurance) personnel are clogged up with testing issues that are in the ‘Ready for test’ stage. So one idea that ...

Read More »

Checking out what is new with Servlet 3.0

java-logo

With the JEE6 specification hitting the market, some major changes have taken place with respect to how you would approach developing applications in the enterprise application world. In this article i would be touching upon a few changes that were done with respect to web application development.                 First things first, say good ...

Read More »

How cool is integration testing with Spring and Hibernate

jboss-hibernate-logo

I am guilty of not writing integration testing (At least for database related transactions) up until now. So in order to eradicate the guilt i read up on how one can achieve this with minimal effort during the weekend. Came up with a small example depicting how to achieve this with ease using Spring and Hibernate. With integration testing, you ...

Read More »

Locking with a semaphore : An example

java-logo

Concurrency is one aspect that brings along interesting challenges along with it. If not correctly handled, it brings about race conditions that will baffle people because those issues just pop up from time to time and work flawlessly sometimes. The Java language gives many ways of handling race conditions when dealing with concurrent threads accessing a common resource. Some include; ...

Read More »

Android Tutorial: Enter the DROID World

android-logo

Well quite frankly i’m late to the game, but here i am, getting my hands dirty(or wet or whatever you might call it) in the world of android. This post will focus on how to set up the android SDK, setting up ADT for eclipse as well as an introduction to the structure of a typical android project using an ...

Read More »

Hibernate lazy/eager loading example

jboss-hibernate-logo

This post will focus on why and how we use the concepts known as LAZY and EAGER loading in an application and how to use Spring’s hibernate template to load our LAZY entities in an EAGER fashion. And of course as the title itself suggests, we will show this by an example. The scenario is as such; You are a ...

Read More »

Setting up JNDI with Jetty (Embedded)

codehaus-jetty-logo

I was running embedded Jetty on my developmentwork-space saving some time on vicious cycle of compiling and deployment. I have not worked with Jetty much and the ease of use made me hook on to it. I was in need to setup JNDI in order to retrieve a connection pool for my database related activities. Though there were comprehensive documentation ...

Read More »
Do you want to know how to develop your skillset and become a ...

Subscribe to our newsletter to start Rocking right now!

To get you started we give you our best selling eBooks for FREE!
Get ready to Rock!
To download the books, please verify your email address by following the instructions found on the email we just sent you.

THANK YOU!

Close