struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rene Gielen <>
Subject Announcing first shot on a JSR299/CDI/WebBeans support plugin for Struts2
Date Mon, 07 Dec 2009 19:29:44 GMT
I've put my initial works on a Struts2 CDI plugin into the sandbox. It 
implements a JEE6 compliant ObjectFactory, making Actions etc. being 
wired up by the EE container, with all the good stuff like scoped 
managed beans, EJBs and such.

The plugin is built against current S2 trunk (2.2.0-SNAPSHOT). It uses 
JBoss Weld (the JSR299 RI) for building and testing, as well as an early 
version of Weld-SE for testing. The latter dependency is not yet in a 
maven repository, but the build process will bootstrap it from 
subversion when the bootstrap profile is enabled:
mvn -Pbootstrap install
Please note that the bootstrap build of Weld-SE enforces use of Maven 
2.0.10 - don't ask me why ... ;)

I've also put together the inevitable NumberGuess example as a S2 
implementation, using and demonstrating the CDI-plugin. It works nicely 
against Glassfish V3 full profile preview, JBoss should work as well.

I've got some further ideas for transaction management helper 
interceptor, as well as some thoughts on how a @PreDestroy lifecycle 
method might be supported in Actions. I also plan to add some useful 
documentation to the wiki.

Any feedback highly appreciated, have fun with it :)


- Rene

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message