In two previous entries I covered Introducing NIO.2 (JSR 203) Part 1: What are new features? and Introducing NIO.2 (JSR 203) Part 2: The Basics In this entry I will discuss Attributes introduced in NIO.2. Using attributes we can read platform specific attributes of an element in the file system. For example to hide a file system in DOS file system or to check the last access date of a file in...
on Jun 23, 2010
First off, I want to thank Apple for being such big supporters of Java. You may have gone off and done your own thing, but as Java developers, we still have to give some serious kudos.
However, what has been going on with symlinks in the /System/Library/Frameworks/JavaVM.framework/Versions directory is wrong. If I remember correctly, I noticed this at first with the upgrade to Snow Leopard, and...
on Jun 23, 2010
I was doing some JavaFX hacking, and I had to create a sequence initially full of zeros. How can you do that? There's apparently only one way:
<p>var bits = for (i in [1..64]) (0 as Long);</p>
Problems: First, I need a loop - OK, a comprehension - to initialize the sequence. There is no syntax, no API helper or type constructor, that directly expresses "Long with N elements...
on Jun 18, 2010
Parts 1, 2 and 3 introduced StringTemplate through the use of simple SQL, HTML and plain text examples. This article switches gears and attempts to use StringTemplate to generate a more complicated text output: Java source code.
In “Effective Java: Second Edition” (go read it, no really go read it) Mr. Block puts forth the idea of using a “Builder” class...
on Jun 13, 2010
<a name="abstract">In the month of June 2009, I did an initial post in the openjdk.java.net-jdk7-dev<br /> mailing list with a request for what I feel are two very important changes<br /> required in the Java Platform.This resulted in a thread of discussions...
on Jun 2, 2010
Please note: I put forth SQL examples because they can be short and are easy to understand. As other have pointed out it is not advisable to build SQL with Strings, regardless of the technique used.
What is StringTemplate?
To quote the StringTemplate home page:
“StringTemplate is a java template engine for generating source code...
on May 25, 2010
My previous blog, presenting the Life program, was quite long, still not really complete. I've continued the work, but soon found some interesting surprises. This new blog starts investigating an API bug, then trips into some surprising language behavior, and ends in a proposal for a small change in the JavaFX Script language.
A Slider bug
I was annoyed to see that the Slider control ignores my...
on May 25, 2010
Web Services and XML
JAX-WS RI team is pleased to announce the release of 2.2.1 version. It is also included in Metro 2.0.1 and GlassFish 3.0.1. It is a minor release with few bug fixes.
Some of the changes in 2.2.1 are:
wsgen can inline schemas in a generated wsdl using a switch
Schema Validation support is enhanced
The bits are also in JAX-WS Maven repository
Continue sending your feedback to the forum...
on Jun 21, 2010
1) Basic understanding about web service
2) Knowledge of base 64 encoding
3) Knowledge of MTOM
Refer resource section for information on these topics.
Web service has been evolved from simple request-response mechanism to object oriented style support...
on Jun 11, 2010
Still hesitating to join JCertif 2010 http://www.jcertif.com ?
See Tasha's excellent post on Brussels JUG website http://www.brussels-jug.be/?p=785
PS : We offer the hotel (one night) to thank our Speakers.
on Jun 20, 2010
My slides for "Exploring HTML5 With JavaServer Faces 2.0" slides are available at Slideshare: Available at: http://www.slideshare.net/rkitain/jsf2-html5jazoon
on Jun 9, 2010
During Jazoon 2010 I had the chance to chat with many people about Scrum and this motivates me to look around and check scrum.org website and found this quate on the guide
“A chicken and a pig are together when the chicken says, "Let's start a restaurant!"
The pig thinks it over and says, "What would we call this restaurant?"
The chicken says, "Ham n' Eggs!"...
on Jun 2, 2010
I simply hate that "mvn eclipse:eclipse" does not generate project files for Maven projects that have POM packaging. Yes I know that I can simply create a Default Eclipse project on the folder but why do I have to do this action many time when the target is to avoid to repeat task?
So I hacked into and "fixed" it. That was simple. What is not is to understand reason...
on Jun 14, 2010
One of the not-so-great things about developing Java web applications is the fact that, after a few redeployments, sooner or later the web container JVM needs to be restarted due to Out Of Memory errors. This has been true in every combination of development environment and web server I have used so far, and until last week Netbeans 6.8 + Glassfish 3.0.1 was no exception.
The cause of Out Of...
on Jun 10, 2010
Bean validation is a nice API for for validating Java objects and is included in Java EE 6. But it can also be used anywhere, regardless of the layer. It can be used with or without JPA and in a stand alone Java SE.
It formalizes and encourages the validation approach at the domain model level.
It helps in de-duplication of the validation logic that we are accustomed to having all over the place...
on Jun 10, 2010
I am happy to announce the release of Apache Pivot 1.5! Apache Pivot (http://pivot.apache.org) is a platform for building rich Internet applications (RIAs) in Java. It combines the enhanced productivity and usability features of a modern RIA toolkit with the robustness of the industry-standard Java platform.
Pivot 1.5 includes a number of improvements intended to help improve the overall...
on Jun 8, 2010
I've finished the development of my Game of Life, with a couple final fixes and new features... including a solution to the bad performance reported before. Once again the work has uncovered some surprises; read on.
Un-Scripting JavaFX Script
The first version used a "scriptish" style, all code thrown in a single .fx file, only average effort in structure. Now I have three files: World....
on Jun 4, 2010
The problem at hand is that EclipseLink (great project lead by James Sutherland) does not use a query cache when dealing with ReadAll queries, i.e: all calls to getResultList() go to the database. Some object-level caching is performed by avoiding construction of new objects based on the primary key values the database call returns. EclipseLink compares the PK values returned by the...
on Jun 1, 2010
In this part we will discuss the basic classes that we will work with them to have file system operations like copying a file, dealing with symbolic links, deleting a file, and so on. I will write a separate entry to introduce classes which are new to Java 7 for dealing with streams and file contents, watching service and directory tree walking. If you want to know what are new features in Java...
on Jun 1, 2010
In front of hundreds of guests from the economy sector, the political sector as well as the Information and Communications sector (ITK) the 'Initiative for Small and Medium Sized Businesses' awarded the Innovation Prize IT 2010 during the NORD/LB forum at the CeBit for the best IT innovations of the year. Micromata came third in the Open Source category with its Java API for KML - JAK.
on May 30, 2010