Archive for February, 2010

*nix commands I can’t do without

Unix/Linux/*nix survival 101
Let me start with the obvious: I’m definitely not a unix guru by any means. I do however use it on a daily basis for basic build/development oriented tasks, so I know enough to get by. Since my friend just installed his first ever linux distribution (CentOS, Huzzah!), I thought I’d write something [...]

Posted on February 13, 2010 at 11:42 pm by Ant · Permalink · 10 Comments
In: Fedora · Tagged with: , ,

Transforming XML into MS Excel XML

MS Excel understands XML?
If you need to export xml to a Microsoft Excel friendly format, you could stress over the HSSF (Horrible Spread Sheet Format, for the uninitiated) format with apache’s POI framework or you could transform your xml into an format Excel understands (YBDK4EUCFJ35). This approach will allow you to decorate your cells [...]

Posted on February 9, 2010 at 12:09 am by Ant · Permalink · Leave a comment
In: xml · Tagged with: , , ,

Integrating Spring MVC 3.0 with JSR 303 (aka javax.validation.*)

Annotated POJO validation comes to a JDK near you!
The new annotated validation spec (jsr 303) is pretty slick, especially when used along side Spring MVC 3.0, and when backed by ejb3 entities. I’m pretty impressed with how easily it integrates with Spring MVC’s framework, and with how seamlessly error messages are passed to the form [...]

Posted on February 8, 2010 at 12:35 am by Ant · Permalink · 7 Comments
In: Java · Tagged with: , , , , ,

Quartz Scheduled Jobs

Java, XML, and cron driven scheduling made easy.
Projects here and there often need some kind of mechanism to schedule jobs at odd hours, or intervals. Quartz is a robust, flexible tool you can use to accomplish simple to complex job scheduling. There are a number of ways to use/configure quartz, but I’ve grown accustomed to [...]

Posted on February 5, 2010 at 12:33 am by Ant · Permalink · 9 Comments
In: Java · Tagged with: , , ,

Ejb3 Basics: Deploying Message Driven Beans

Farewell to lazy auto queue generation in JBoss 5
MDB’s were never so easy to deploy and manage when ejb3 first came out. In Jboss 4, all you have to do was annotate a class with @MessageDriven, sprinkle some meta data here and there, stick it in the oven and wham! Instant “I cant believe I [...]

Posted on February 2, 2010 at 12:37 am by Ant · Permalink · Leave a comment
In: Java, Jboss · Tagged with: , , , , , ,