Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Field injection unstead of JNDI is always feasible wuth local interfaces?

Luk Cora
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm following this guide and i noted that in case of remote interfaces i need to use InitialContext to lookup beans i need




I can avoid this sort of lookup injecting beans through field or setter injection. This is an example of field injection:

but for do this, according to the guide, i need an ACC (application Client Container).. What i want to know is: this is only the case of remote interface? With local interface i can ALWAYS invoke beans without addition lookups, either if i've or not an ACC?
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic