Skip to main content

Home/ CDI Tech Hub/ Group items tagged CDI

Rss Feed Group items tagged

1More

Weld, CDI and Proxies - 2 views

  •  
    Begins by laying out the differences in the dependency injection strategy between Seam 2 and CDI. Then explains how proxies work in CDI and how to leverage a non-portable Weld feature to optimize the behavior of the proxy.
1More

CDI Events - a light-weight producer/consumer in Java EE 6 - 0 views

  •  
    This tip of the day briefly describes the event mechanism in CDI. A basic event/observer is shown, then several qualified events with matching observers.
1More

CDI @Produces for container-managed @Resource - 2 views

  •  
    A concise look at how to a CDI producer field can be used to promote a container-managed resource as a first-class managed bean.
1More

Spring to Java EE - A Migration Experience - 1 views

  •  
    So Java EE 6 is out, and you've decided to give it a go. You're trying to port an existing application over to the new stack (or are trying to create a new one for the first time,) but exceptions are bursting through the seams and you just can't seem to get things to work. If you're familiar with Spring and Hibernate (with all the joy that is OpenSessionInView or OpenSessionInConversation,) more than likely the problems you're having are related to the Java Persistence API (JPA), combined with Enterprise Java Beans (EJB). Contexts and Dependency Injection (CDI) should be a familiar face if coming from Spring, but things are subtly different in the world of Java EE.
1More

Enterprise JavaBeans 3.1 with Contexts and Dependency Injection: The Perfect Synergy - 2 views

  •  
    This article highlights why the EJB 3.1 and CDI programming models form an ideal pairing for creating lightweight enterprise applications. The individual feature sets of both specifications are clearly presented. The article goes on to show how these feature sets complement one another, filling in gaps that the other doesn't address. Simple companion source code is provided.
1 - 5 of 5
Showing 20 items per page