• Post Reply Bookmark Topic Watch Topic
  • New Topic

Developing a Container Managed Cache

 
Michael Arnett
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All,
I am wanting to simply develop a Container Managed EJB which would be a persistent cache from a DB. The Cache would automatically refresh once every hour. Could anyone offer me an example of how to do this common solution?
Thanks in advance,
-MLA
PS I am using JBoss 3.2.1 for the app server with Tomcat and JDK 1.4.2_01.
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Um, that would not be a container managed bean. There's no way to make the beans refresh like that, at least not in a spec-compliant way. If you want to build a cache like that, I'd recommend you do that with POJOs (Plain old Java Beans) instead.
Kyle
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!