• 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
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!