Blog Archives

A CDI Scope Resolver for Spring 3

A few weeks ago I blogged about a simple Spring Resolver to integrate CDI standard scopes in a Spring-based application. I noticed, while checking my blog stats, that folks are interested in an integration of CDI (scopes) in a Spring

Posted in CDI, java, spring

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 @Inject

In here I showed how to use the @Named with Spring 3 to create “named beans”, to be used in frameworks like JSF2… Since we usually want to inject service implementations into our JSF beans, we need to use the

Posted in CDI, java, jsf, spring

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

Apache Hadoop HBase plays nice with JPA

The Google AppEngine uses the Google BigTable implementation as it’s storage system. Instead of only offering a native (and not so common) API to persist data they worked with the Datanucleus guys to get support for JPA and JDO. There

Posted in Bigtable, ejb, Hadoop, HBase, spring

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

JSF 2 and CDI – a nice combo!

In JSF 2.0 there is (optional) support for annotating JSF Managed beans, via the Faces Managed Bean Annotation Specification. Both Apache MyFaces and the SUN RI implement this specification. With the advent of these two JSRs: 299 – CDI (Contexts

Posted in apache, ejb, facelets, java, jetty, jsf, myfaces, spring, web², WebBeans