• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

EJB Container and Dependency Injection

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello everyone.


I spent a lot of time looking for information about EJB container and DI but it was quite worthless because I found only brief infos about it. Can you help me and point some valueable articles or books about this topic (especially DI in EJB)? Thanks in advance.


Chris
 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I find Manning Publications EJB 3 In Action to be very informative and helpful in learning EJB 3. A book specific to DI is Dependency Injection by Dhanji R. Prasanna
 
Chris Logan
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the reply Sib Pete.

I know about this books. Though, I found out Dependency Injection by Dhanji R. Prasanna too complex and as you wrote its limited to the conception of DI and moreover I want to learn about DI in the context of EJB architecture. I read EJB 3 In Action but it was quite time ago so I will reread the interesting to me parts.

In a mean time I came up with some questions I hope you can help me with those.


1) During the deployment configured (by annotations or deployment descriptors) components (session and md beans) are registered in EJB container - that's correct?

2) What is responsible for creating services/resources and where are they registered, is it also the EJB container?

3) Where/when the services, resources and components are bound to the JNDI?

4) In EJB we can inject all resources that are populated in the JNDI, am I right?


Thanks for your attention.


Cheers
 
Those who dance are thought mad by those who hear not the music. This tiny ad plays the bagpipes:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic