Antonio Goncalves is a senior software architect living in Paris. Initially focused on Java development since the late 1990s, his career has taken him to different countries and companies where he works now as a Java EE consultant in software architecture. As a former BEA consultant he has a great expertise in application servers such as Weblogic, JBoss and, of course, GlassFish. He is particularly fond of Open Source and is a member of the OOSGTP (Open Source Get Together Paris). He is also the co-creator of the Paris Java User Group and talks on Les Cast Codeurs podcast. Antonio wrote a first book in French on Java EE 5 back in 2007. Since then he has join the JCP and is an Expert Member of various JSRs (Java EE 6, JPA 2.0 and EJB 3.1). He then published a second book for Apress: Beginning Java EE 6 Platform with GlassFish 3. For the last years Antonio has been talking at international conferences mainly about Java EE, including JavaOne, The Server Side Symposium, Devoxx, Jazoon… He has also written numerous technical papers and articles for IT Web sites (DevX, JaxEnter) or IT magazines (Programmez, Linux Magazine). Antonio is a DZone MVB and is not an employee of DZone and has posted 30 posts at DZone. You can read more from them at their website. View Full User Profile

To inject or not to inject: CDI is the question

  • submit to reddit

Two weeks ago I did a little tour around several JUGs and conferences to talk about dependency injections with CDI. The final goal of this road movie was to end up at GeeCon in Krakow. It was my second time at GeeCon and I have to say that this conference is like good wine : getting better with age. This community based conference is on its third edition and attracts people through out central and eastern Europe. Plenty of good speakers, nice location, skilled attendees… and a lot of fun (GeeCon organizers are party addicts). So make sure you mark this conference into your agenda for next year.

In the meantime, I have made my slides available. Enjoy and do not hesitate to send me some feedback.


Published at DZone with permission of Antonio Goncalves, author and DZone MVB.

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)



Fab Mars replied on Thu, 2011/05/26 - 7:50pm

To inject or not to inject: is that really a question?

I mean...I don't know anyone who went to CDI and looked back :)

Reza Rahman replied on Thu, 2011/05/26 - 9:15pm

Good job - nice slide deck. It would be good to add testing (perhaps via Arquillian) as well as plug-ins like Seam, Apache MyFaces CODI.

Henk De Boer replied on Fri, 2011/05/27 - 2:46pm

It's almost not a question anymore. I remember the discussions we saw in the mid 90-ties: to use objects or not to use them. It's barely a question these days and simply a given for the bulk of software development.

For Java EE 6, CDI is wonderful, but the current overlap with JSF managed beans and partly with EJB beans can be a little confusing and is definitely an area that's still open to improvement.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.