Register / Login
EJB and other Java EE Technologies
when does the we are not available DI ?
posted 6 years ago
I read this from
3 in Action book.
Anyway can anyone tell me when does the we are not available DI ?
This method is used to get references to objects stored in the JNDI registry. With the introduction of DI in EJB 3, direct JNDI lookup has been rendered largely unnecessary. However, there are some edge cases that DI cannot handle, or perhaps DI is simply not available. This method proves handy in such circumstances. We discuss this topic later in this section
Why not use Dependency Injection of Stateful session bean inside a stateless session bean?
Why EJB 3.0 and Why your book
EntityManager thread safe?
service locator pattern and DI