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: , , , ,

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: , , , , , ,

Ejb3 basics: Entities

Entity Beans? Better than 2.1, I promise. Ejb3 Entity beans are a type of enterprise java bean construct used to model data used by the ejb framework. The basic idea is to manipulate simple java objects, which represent in concrete terms your database data, and then have the framework handle as much of the plumbing [...]

Posted on January 29, 2010 at 12:47 am by Ant · Permalink · One Comment
In: Java · Tagged with: , ,

XML, Xalan, Endorsed dirs and &..

So recently, we’ve been working on a project that makes use of OpenSAML. As it turns out OpenSAML required newer Xalan libraries (2.7.1 to be precise), the kind that don’t ship with the older incarnation of jboss we are using for the project – version 4.02. Some of you might be more familiar with the [...]

Posted on January 28, 2010 at 12:32 am by Ant · Permalink · 3 Comments
In: Jboss, Technobable · Tagged with: , , , ,

War deployment file structure

What’s a war deployment, do I need my own army? When it comes to deploying an web based application we have a few options on the table. Well only one really if you stick to J2EE standards, not counting Ear deployments which also deploy web apps via wars. Outside the world of J2EE though, it [...]

Posted on January 25, 2010 at 12:03 am by Ant · Permalink · One Comment
In: Java, Jboss · Tagged with: , , , ,

Java, XML and XStream

What’s an object/xml serializaing/deserializaing library? If you’ve never worked with an object/xml serializer and are considering writing your own from scratch, you may want to consider using a library like XStream. XStream is very good at moving java into xml and back. It allows a high level of control over how the xml can be [...]

Posted on January 22, 2010 at 12:36 am by Ant · Permalink · 9 Comments
In: Java, Technobable, xml · Tagged with: , , , ,

Using Jboss Datasource files

If you’re using jboss and you’re storing database connection info in a properties file, you might be doing something wrong. Specifically, you’re probably not using the data source files jboss ships with to configure all that plumbing. What’s a Datasource file? Simply put, its a file that contains all the connection properties an application needs [...]

Posted on January 20, 2010 at 9:44 am by Ant · Permalink · Leave a comment
In: Java, Jboss · Tagged with: , , , ,