Author Archive

Sardine powered webdav client?

Extra Sardines on my pizza please A few days ago I came across the need for an easy to use webdav client. Currently we’re using jakarta slide, which as it turns out is a project that was discontinued (as of fall 2007!), and whose code base as of this writing is practically 10 years old. [...]

Posted on July 28, 2010 at 11:14 pm by Ant · Permalink · Leave a comment
In: Java · Tagged with: , , ,

Sending Attachments with the Javamail 1.4.x API

Make your emails interesting with attachments! Not that your emails aren’t already interesting – if you have some kind of regular job running and you want to produce a results bound file sent to your recipients as an attachment, this code example can illustrate one way it can be done. It’s pretty much the same [...]

Posted on July 25, 2010 at 11:06 pm by Ant · Permalink · Leave a comment
In: Java · Tagged with: , , , ,

The Deploy vs Deployers directory, JBoss v5.x

Tae Bo for JBoss! JBoss ships with a few configurations that are meant to provide examples of how JBoss can be configured for your environment. It’s recommend you take the “default” configuration (or “all” if you require clustering), and then slim it down by removing the various mbean components found in the “jboss/server/<configured instance>/deployers” and [...]

Posted on July 23, 2010 at 4:28 pm by Ant · Permalink · Leave a comment
In: Jboss · Tagged with: , , , ,

Jars and Class Loading, Jboss v5.x

So where do I put all my jars? As you write your applications you’re bound to leverage third party libraries to cut down on the amount of work; lets face it no one wants to reinvent the wheel. A downside is sometimes these third party libraries might not be the most mature or stable releases [...]

Posted on July 15, 2010 at 10:40 am by Ant · Permalink · Leave a comment
In: Jboss · Tagged with: , , , , , , ,

Write a Stored Procedure in Postgres 8+

Stored Procs Sometimes as a developer we’re tasked with data intensive work like importing data into a database, cleaning up sets of incomplete records or transferring data from one table to another through some kind of filter. While our application would normally be in charge of creating and maintaining the data, sometimes we don’t want [...]

Posted on May 5, 2010 at 7:52 pm by Ant · Permalink · Leave a comment
In: Technobable · Tagged with: , ,

*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 [...]

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. This approach will allow you to decorate your cells with [...]

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 [...]

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

Quartz Scheduled Jobs – v1.5.2

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 [...]

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 [...]

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