Blog Archives

Enterprise Java without EJBs (but with CDI and MyFaces CODI)

At the W-JAX 2010 Peter Rossbach (Apache Tomcat Committer and freelancer) and I spoke about JavaEE 6 and particular the new ‘lightweight’ possibilities that are available with the WebProfile from JavaEE 6. We covered the following technologies in our talk:

Posted in apache, CDI, codi, facelets, fun, java, jetty, jsf, myfaces, myfaces codi, web², WebBeans, wjax

Using CDI Scopes with Spring 3

With the advent of Spring 3 the framework now supports the Java Injection standard (JSR 330). However, unfortunately, they do not support the scoping, which is introduced in Java EE 6,through the CDI specification (JSR 299). Now the big difference

Posted in apache, CDI, ejb, java, jsf, myfaces, seam, spring, WebBeans

Spring 3.0 and JSR 330: Using @Named

The Spring 3.x release comes with a build-in support for the JSR 330, called “at inject” (or Dependency Injection for Java). So it is now possible to use these annotation as an alternative for the @Autowired et al. The benefit

Posted in CDI, spring, WebBeans

Demo of Apache MyFaces 2 and OpenWebBeans

Recently the Apache MyFaces project released its second beta release and yesterday the Apache OpenWebBeans project released its M4 release. These are great milestones in the direction of JavaEE at Apache! A few month ago Bernd Bohmann and I were

Posted in apache, CDI, facelets, fun, java, javascript, jetty, jQuery, jsf, jsp, myfaces, web², WebBeans

combining CDI producer methods with EL

CDI’s Producer methods are nice to expose any sort of class (e.g. legacy or 3rd party (JDK)). Combining the @Produces with the @Named you can reuse the result in your XHTML JSF page. Some Java code: Now the XHTML can

Posted in ajax, apache, CDI, facelets, guice, java, jsf, myfaces, seam, WebBeans

Dependency Injection the JSR 330 way

Dependency Injection is not new! There have been several ways of doing DI in your Java application. The idea behind them is well understood, but the actual realization is slightly different: XML files vs Java annotation/classes etc… That can become

Posted in apache, ejb, fun, java, jsf, spring, WebBeans

Extensions for CDI

The JSRs 299/330 are pretty interesting as they offer a nice way to use its flexible structure to easily add new features. For instance inside of the Apache implementation (Apache OpenWebBeans) there is already some extension that adds decent support

Posted in apache, ejb, fun, java, jsf, myfaces, seam, WebBeans