This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

[Patterns] Service locator and EJB 3.0

 
Koji Muramoto
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In EJB 2.x we could use the Service locator to cache Home interfaces (using jndi name as key). In EJB 3.0 one looks up directly to the business interface, that is you work directly with the proxy (no need to call home.create()) and caching can be a bad thing.

So the only real caching benefit of SL in EJB 3.0 is the caching of InitialContext, but for the exam though should I also consider caching of remote references as a benefit as well?
 
Ionut Bucurescu
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might take a look at the thread http://www.coderanch.com/t/156191/Architect-Certification-SCEA/certification/Obsolete-Design-Patterns-EJB-SCEA#761868
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic