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
I was going through the documentation of Spring Roo, version 1.0.1 while preparing a talk for JDC 2010 about the Spring Roo .. No need to mention the Roo is awesome, amazing and not Magic :-)
Ben Alex , Stefan Schmidt did a great job really in this project. Smart architecture!
"The automated startup-time scan is also very useful as you upgrade to newer versions of Roo. Often a new...
on Feb 13, 2010
Continuous Integration often requires a heterogeneous environments; for example, the GlassFish build requires Linux, Solaris, and Windows, and the JDK build requires something like 10 different environments, each carefully created so that we can test what we need to test.
Unfortunately, heterogeneous environments reduce the resource utilization — you can easily have some Windows slaves...
on May 18, 2009
First, I want to say I'm extremely excited about JSF 2.0, and I think it's a major leap forward for the framework.
That being said, there's one thing that's been bugging me for a while: no built-in support for conversation scope. (For those who don't know, "conversation" scope is shorter than a servlet session and longer than a request, and is popular in frameworks like Seam, Spring Web Flow,...
on May 11, 2009
In case you hadn't heard, Apache Shale is moving to the Apache Attic. What is the Apache Attic? It's a new project, started last year. It's where other projects go to die.
According to the Apache Attic site:
It is intended to:
* Be non-impacting to users
* Provide restricted oversight for these codebases
* Provide oversight for active user lists with no Project Management Committee (PMC)
on May 11, 2009
SailFin V1 MS6 is now available. Prasad reports that there were more than 141 bug fixes after MS5 that went into this release.
More importantly, SailFin now passes JSR 289 TCK. Here is the link to the test results and a short related discussion in the dev mailing list.
Many thanks to Mihir (289 Spec Lead from Oracle) for supporting us during last month or so by answering numerous questions...
on Nov 10, 2008
This year, we got a small comfy booth dedicated just for Hudson, inside a section called Java playground (and I just finished setting up a booth.)
So if you are coming to JavaOne, please consider dropping by. I might not be at the booth all the time, but looking forward to seeing many of you.
on May 5, 2008
The application jVoiceBridge is a software-only audio mixer that handles Voice over IP (VoIP) audio communication and mixing, for tasks such as conference calls, voice chat, speech detection, and audio for 3D virtual environments. Currently it is most commonly known for its use in the Wonderland project, a 3D virtual environment developed by Sun.
I have written this article to give an...
on Apr 18, 2008
Before JavaOne, two projects kicked-off, XMPP BC and SIP BC . The projects released JBI binding components for both XMPP and SIP providing instant messaging and presence capabilities for those protocols. Recently, both were upgraded.
The XMPP binding component now supports groups. An application developer can quickly orchestrate participation in a Jabber group chat. The BC provides all of...
on Sep 12, 2007
Despite the fact that many early JBI implementations are reusing enterprise infrastructure for their implementations (e.g. JMS messaging backbones and J2EE containers), my prediction is that JBI will start invading the mobile market.
Already, people are looking to leverage JBI implementations on small footprint platforms as a means of realizing the benefits of an "enterprise" service bus, but...
on Jun 21, 2007
I have a hard enough time keeping my mind straight as it is, maintaining multiple internet persona's only makes my life more difficult: a skype account, IRC, AOL, XMPP, Yahoo, email, PSTN, mobile, etc. Some clients have been doing a better job of bridging the networks from a user perspective, but this does nothing for capabilities development on the server side -- and the disparity between the...
on Jun 18, 2007
He spoked about Java. But not about the Java Language itself. No. About the Java Virtual Machine.
He explained that dynamic language like Perl, Python could accelerate the development, and also be robust.
Then, he speak about Jython, that is running upon the Java Virtual Machine and could easily be connected with all the current Java APIs.
So, could you imagine the advantage of a dynamic...
on Dec 16, 2004
To borrow words from my good friend, Professor Henry Higgins, "Have you ever met a programmer of good character where XML is concerned? Well, I havent. I find that the moment a programmer learns XML, he/she wants to invent his/her own dialect. "
OK we all have our language exploits and I have invented a few XML dialects of my own (which have a grand following of but one user). Despite my...
on Apr 25, 2004
I do not think it means what you think it means. =)
The word "web" in "web services" is misleading. Web services do not in any way shape or form depend on the "web". They are not tied to any specific protocol or means of invocation. Very generally, a web service is simply a service made available to other loosely coupled systems via an interface that is usually described...
on Apr 1, 2004
Disclaimer: This entry is in no way meant to slight the many other fine distributed frameworks out there. Its just that this one is designed for us non-rocket scientists. :-)
I host a free project here on java.net called the cajo project. It allows any Virtual Machine to easily expose access to any of its selected objects to Remote Virtual Machines, as well as to send any of its selected...
on Mar 17, 2004
In a March 4th article on cnn.com titled "Paying for E-Mail May Be Anti-Spam Tactic", Anick Jesdanun reported that Microsoft chairman Bill Gates, among others, is proposing a per message charge on email messages in order to combat SPAM.
It appears that companies, like Microsoft, Hashcash, and Goodwill Systems, are more interested in making money off of the volume than in solving the problem....
on Mar 7, 2004
I've spent an inordinate amount of time debugging distributed protocol stacks and applications. Building distributed systems / protocol stacks is a tricky affair. It takes a lot of time and patience and testing to get it all right and then some. Reproducing bugs in such systems is tough. Building scalable test frameworks is tough. One normally resorts to looking at event logs and traces and the...
on Jan 7, 2004
Portability or Interoperability Can one helping the other?
Portability is the ability to move a program or programing logic from one system to another system, usually with minimal overhead, or in the case of Java, virtually no overhead. Interoperability is the ability of systems to seamlessly communicate with each other. Where is the connection between Portability and Interoperability...
on Dec 15, 2003
Java User Groups
Last week's kickoff of FESI's research program went very well. There are a number of folks (>500) who are now following this blog on Java.net, and a number who have gotten involved. While we wait for more folks, we'll be researching new technologies, the first being NOSQL databases.
If the kind of topics we're research interests you, please feel free to join the project;...
on May 5, 2010
Java Web Services and XML
RESTless about RESTful
These days there is much discussion about REST and HATEOAS, and many people feel urged to reinterpret what HATEOAS means or what Roy Fielding's often-cited dissertation allegedly would say in their understanding, and what HATEOAS should be implemented like therefore. While I first felt amused about this "dispute about nothing" (just ask Mr Fielding if you don't...
on Feb 14, 2010