Nov 10, 2018

Differences between Resource Injection and Dependency Injection in Java EE


Injection MechanismCan Inject JNDI Resources DirectlyCan Inject Regular Classes DirectlyResolves ByType Safe
Resource InjectionYesNoResource nameNo
Dependency InjectionNoYesTypeYes