I had written a brief introductory post about Play! Framework and since then I havent written much about it. Not before I got an opportunity to review the Play Framework Cookbook. Before coming back to Play! I used Gaelyk for… Read More ›
Java
Java 7 Project Coin: try-with-resources explained with examples
Prior to “try-with-resources” (before Java 7) while dealing with SQL Statement or ResultSet or Connection objects or other IO objects one had to explicitly close the resource. So one would write something like- [java] try{ //Create a resource- R }catch(SomeException… Read More ›
Sample application using JavaFX 2.0 beta and the after thoughts
This sample uses- TabPane, GridView and Bindings in javafx 2.0. I had quite sometime back played around with JavaFX and had good and bad experiences using the language. With the JavaFX 2.0 beta being released I thought of giving it… Read More ›
Play Framework- First thoughts
This is my Yet Another Attempt to Learn Something New π
From the discussions here, I got to know about the Play Framework. So I started to play around- Hello World project, started the Sample project, going through the Framework documentation. So here are my first thought about the framework- And this is my first attempt to have gone a bit deeper into a Java Web Framework so I might not be able to appreciate the same features in other frameworks.
Sessions looking forward to at GIDS-2011
This is the 4th time I would be attending Great Indian Developer Summit- GIDS and for the information- have attended it all the times since its inception. So does that become a kind of record? π GIDS-2008, GIDS-2009 and then… Read More ›
Netbeans 6.9 Disclaimer says Swing not to be supported in JDK?
I happened to create a new Java Desktop Application project in the Netbeans 6.9 IDE. And t his is the Disclaimer which followed: ο»Ώο»ΏNote that JSR-296 (Swing Application Framework) is no longer developed and will not become part of the… Read More ›
Project Lombok- Now write less boilerplate code in Java
We, Java Programmers, are tired of writing- Getters, Setters, Constructors, and other boilerplate code or tired of reading this boilerplate code. Often the important logic in the class gets hidden due to these boilerplate code. May be in the coming… Read More ›
Synchronizing using method local variables versus the current instance “this”
There was one query which came up on Javaranch– it was related to difference between using synchronized block with a method local variable and current instance “this”. I thought that this would better be explained with a code and I… Read More ›
Execute external process from within JVM using Apache Commons Exec library
Executing external command from within JVM often causes problems- be it in terms of the code to write and manage or in the ease of implementation. I had similar requirement in my Major project for my Under Graduate Degree, where in I had to launch a C program from the Java code. I ran into different issues like- the Main thread getting blocked, the GUI freezing, or reading the output streams and so on. Finally I had to give up the idea and stick with launching the external command externally π Had I found the Exec library from Apache Commons then, my work would have been lot easier. Anyways better late then never. I will quickly go through how one can use Exec library to launch external programs from JVM- Its a wrapper over Java’s ProcessBuilder, Runtime.getRuntime().exe().
Using JAXB to generate XML from the Java, XSD
We can use JAXB to marshal the Java objects into XML using the given Schema and vice versa- unmarshal XML into Java objects. The xml schema can be specified in DTD, XSD or other format. The tool “xjc” is used… Read More ›