In this article we will discuss about Java Agents. Java Agents are software components that provide instrumentation capabilities to an application. In the context of agents, instrumentation provides the capability of re-defining the content of class that is loaded at run-time. We will discuss this in more detail in the further sections. Download Source Code: [...]
Archive | Java RSS feed for this section
Handling/Avoiding Null’s in Java using Guava versus Scala
June 9, 2012
There was a discussion about nulls in the latest episode of JavaPosse. Having been inspired from that discussion and with an urge to check out Google Guava library, I came across a way to handle Null’s in Guava which is very similar to the way Scala handles. Lets consider the Person class which is defined [...]
Using Morphia- Java library for MongoDB
June 3, 2012
In our post on developing sample Todo Application using JavaFX and MongoDB, we showed how we can use MongoDB, JavaFX to create a sample application. In that post we used the API provided by MongoDB to carry out the DB operations. In this post lets look at how we can use Morphia to carry out [...]
JavaBeat Newsletter-1: What’s new and noteworthy in the Java ecosystem?
June 2, 2012
We at JavaBeat have thought of coming up with a fortnightly post, a JavaBeat Newsletter covering the latest news in the Java ecosystem be it in the Java language, Other JVM based languages, Cloud support, Tools and other frameworks and also few noteworthy posts added on JavaBeat. Here we have the first edition of JavaBeat [...]
Implementing RESTful API for obtaining the book details for an ISBN
May 8, 2012
Lot of developers out there at some point in time would want to know about an API to get the book details and I was in such a situation sometime back and I managed to find out about ISBNDb. But when I looked for the apis sometime later, I landed here where there are 53 APIs [...]
Embedding HTML into Java Swing Applications
May 6, 2012
HTML in Swing applications? Yes, you have read it right. Swing doesn’t provide components to embed HTML and I have seen lot of people asking how can we add html content in Swing applications. Your concerns have been addressed by the latest release of JavaFX which is JavaFX 2.0. You might wonder what this JavaFX [...]
Creating JSON document using Java and GSON API
May 5, 2012
We saw how to parse JSON using GSON API, in this post we would take a look at how the same GSON API can be used to create JSON from the Java objects. Please read this to get an idea of what GSON is. Diving right into the topic of this example, we would make use [...]
Using JsonSlurper Groovy API from Java to parse JSON
May 3, 2012
We have seen here on how to parse JSON in Java using Gson and here on how to parse JSON in Groovy. I also touched upon in brief about Groovy here. The beauty of these JVM languages is that one can invoke these APIs from Java, the only requirement is that you need to have [...]
Invoking RESTful Web Service using API in java.net and GSON
May 1, 2012
In our previous post, we wrote about parsing JSON using Java and GSON library. Moving further, in this article we will look at how to use classes in java.net package to invoke a RESTful Web Service and then parse the JSON response using GSON library. For this we make use of the Twitter REST API [...]
Parsing JSON using Groovy
April 30, 2012
In our previous post we saw how we used Gson API to parse the Json using Java. Not spending too much time on the introduction, I would want to straight away dive into the same parsing which can be done using Groovy language. Groovy is a scripting language which runs on the JVM. It can [...]






June 16, 2012
3 Comments