Hi Every one, We have a caching service which uses a JBoss Tree Cache class, its like we can put and get object out the cache. We wanted remote users to use this service so we added a state less bean in front of the Caching Tree Class, The state of the Tree Cache class is taken care by Spring Core so which defaults to singleton , so clients get a hold of Tree using a session bean (stateless) call put an object, we can do all the operations on cache like put and get with in a single session bean call but when we put an object in one call and try to retrieve it in another I get a null. I know that stateless session beans are there to forget the state, but if it interfaces a class object whose state is maintained by spring and defaults to singleton there should be no problem, but when we run some test cases it wont work, it works fine in one session bean call, but when I put and get an object in two different calls it fails and I get a null value. Hope I was able to explain the design here, the main question after this would be how can we get a stateless session bean to get hold of a bean which is singleton? In multiple calls.
Any help would be appreciated. Thanks in advance. Regards