• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

dependency injection on distributed containers

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi out there, is it possible to use DI (dependency injection) from a JSF-Managed Bean to access an ejb, if the WebApp is deployed on another server than the EjbApp? Or do I have to use the classical ServiceLocator pattern and configure the lookup by myself?

Thanks for any help and kind regards,
Charles.
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Are you asking the possibility of using dependency injection in JSF managed beans to access EJBs ? If so, yes, you can.
JSF managed beans support the dependency injection feature. JSF components running in Web container (Java EE 5) can access the components running in EJB container
thro’ dependency injection without requiring to use JNDI look up as web container is aware of annotations. The following articles will explain the same

http://java.sun.com/developer/technicalArticles/J2EE/injection/

http://www.capcourse.com/Library/JSF+EJB/JSF+EJB_50.pdf
 
Your mind is under my control .... your will is now mine .... read this tiny ad
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic