File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes Use Of InitialContext for Caching Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Use Of InitialContext for Caching" Watch "Use Of InitialContext for Caching" New topic

Use Of InitialContext for Caching

Prakash Dwivedi
Ranch Hand

Joined: Sep 28, 2002
Posts: 452
Hello Friends,

I am planning to implement a sort of caching in my application. To start with i want to cache all the data of Master Tables (Content of these tables doesn't usually changes). I was planning was to retrieve all the data and store in a place where all the session beans can acess it. Will it be right to store it in InitialContext using bind() method? Or is there any better location to store such information. Unlike ServletConext, SessionContext doesn't store user defined objects.


Prakash Dwivedi (SCJP2, SCWCD, SCBCD)
"Failure is not when you fall down, Its only when you don't get up again"
I agree. Here's the link:
subject: Use Of InitialContext for Caching
It's not a secret anymore!