What didn't work? What you do is one way to do it - take a look the Seam Application
Framework and how it does it...
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4041718#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...