Steven Verborgh

Just another weblog

November 2009 Archives

Arrrrcamp "unpresentation"

You don't go to a Barcamp and just sit there! You get out an talk, and my present something if you feel like ... or as in my case "unpresent" something. Keep in mind, I had no preparation whatsoever except the rum they handed out for free. But hey, I don't think pirates rehearsed or something, so why would I. Arrrrr(gh).

ruby extensions from Openminds on Vimeo.

Continue Reading…

Posted by verborghs on Nov 28, 2009

Building Upon Context and Dependency Injection and Dependency Injection for Java

The new Java EE 6 plaftorm specifation has lots of new thing wort having a look at. In an attempt to write a JSF 2 application, where i didn't want to use the optional ManagedBean, ManagedProperty and related annotation, I needed to look into JSR 330 and JSR 299. There is some documentation available on both of these specs if you look arround on the internet.

In this small example I'll demonstrate how we can change a @ManageProperty(value="#{params.id}") annotation on a managed bean with an @ManagedBean("demo") annotation to a custom Qualifier annotation as specified in JSR 330: "Dependency Injection for Java". We'll also look at how we van replace the @ManagedBean annotation to the correct javax.inject annotations.

Continue Reading…

Posted by verborghs on Nov 10, 2009

Easy restfull JAX-RS webservices and extended WADL on Glassfish v3 (using ant.)

REST of Representational State Transfer seem to be the latest buzzword for some time in the world of webservices. Creating them, though not as easy as with Rails, using JAX-RS and the Jersey Reference implementation is not that difficult.

In this short introduction we will look into using EJB 3.1 lite in a web application to create a very simple dummy webservice. Since it would be enterprise enough on itself, we will also extend the default WADL file with the help of some ant tasks and doclets. To finish it up we will also generate a client based on the WADL and XSD. You will also see the advantages of using JAXB with JAX-RS.

Continue Reading…

Posted by verborghs on Nov 21, 2009