spiros.blog()
Spiros Tzavellas’s blog, mostly on software development and Java.
Browse: Home / Java / Caching in Service Locator implementations

Caching in Service Locator implementations

By spiros on June 26, 2005

Here you can find an article by Bobby Woolf that describes why caching inside a Service Locator in J2EE 1.3 applications may have unexpected behavior.

The article also provides a nice explanation of the EJB resource reference mechanism.

Update (19/9/2005):

BTW this is why the Adventure Builder (the sample application developed by SUN for J2EE 1.4) has two implementations for the Service Locator design pattern.

The first implementation is for the EJB tier and does not have caching to avoid the problem explained in the article.

The second implementation is for the web tier and uses caching since resource references in the web tier are the per web application and it is safe to cache them in a static variable.

Posted in Java | Tagged caching, design patterns, ejb

« Previous Next »

Pages

  • About
  • Projects

Categories

  • .Net
  • Agile
  • architecture
  • Databases
  • Firefox
  • Java
  • Javascript
  • Linux/Unix
  • Programming
  • Scala
  • Startups
  • Web

Tags

aop architecture aws book C# C/C++ caching circuit-breaker cloud clustering Databases dependency injection design patterns distributed eclipse EclipseLink ejb fp gc guice gwt hibernate Java javaee jhug jpa junit jvm maven mysql oop php podcast ruby Scala scalability scrum seam spring framework struts tools transactions web services wireless xml

Copyright © 2012 spiros.blog().

Powered by WordPress and Hybrid.