Originally posted by Senthil Kumar SS:
How dependency injection is done using DD file.I have seen the tag <injection-target> in an article. But haven't find that in specs. is this the only tag available. where can i find the information about injection tags
The <injection-target> element is used if you want to inject an EntityManagerFactory into an EJB's bean class.
The EntityManager is injected into the field named yourField or passed as a parameter to a setter method named setYourField( ) in YourBean class.
(I've modified the example a bit, because i didn't wanted to quote totally the book!)
No matter how many women are assigned to the project, a pregnancy takes nine months. Much longer than this tiny ad:
Rocket Oven Kickstarter - from the trailbosshttps://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss