Originally posted by David Harkness:
No. Since you are caching references to local EJBs -- meaning they are in the same JVM -- each JVM cache will reference a different set of local EJBs (those in its JVM).
I am using a singleton (service locator).I am using an hashmap as static class variable to cache all remote/local objects.
In clustered environment I will end up having one service locator per JVM.
Even the static hashmap which hold references will be one per JVM.
My concern is even though a reference may be available in one JVM cache,because of clustering the request may go to other JVM and create a new reference in cache in that JVM.
Is there any impact of caching remote/local references in this way wrt to clustered environment
[ October 27, 2004: Message edited by: Raj Joe ]
[ October 27, 2004: Message edited by: Raj Joe ]