The Main Differences between Resource Injection and Dependency Injection


  • Resource Injection can inject JNDI Resources directly where as dependency injection cannot.
  • Resource Injection cannot inject JNDI Classes directly where as dependency injection can.
  • Resource Injection Resolves by Resource name where as Dependency Injection Resolves by Type.
  • Resource Injection is not Typesafe where as Dependency Injection is Typesafe

Search:

Recent Posts