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

ServiceLocator in Petstore??

 
andy armstrong
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are 2 service locator classes in the petstore. One is for the ejb tier the other for
the web tier. Why cannot there be just one used for both tiers?
 
Rufus BugleWeed
Ranch Hand
Posts: 1551
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
IMHO
Could be web and ejb containers are in different JVMs. JNDI lookups are slow to begin with and having two ServiceLocators eliminates a bit of latency.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic