I am developing a web application, now what I want to do is to use a HASHMAP through out the application, by mean when server starts to server stops and I should be able to play with it mean while also.
Thanks for your time.
PS : session is not available to me always [ December 16, 2008: Message edited by: rudradutt joshi ]
now how will I found the servletContext from another bean like
[ December 17, 2008: Message edited by: rudradutt joshi ]
Joined: Oct 08, 2006
That said, it doesn't necessarily have to be a servlet. That's a very odd design. Just let an HttpServlet (or, better, a ServletContextListener) create an independent FenceMap object and place it in the desired scope.
Also, testingservlets as a Java Application (with main()) isn't going to work. Test it as a servlet in a real webcontainer. Use an appserver and a webbrowser or JUnit. [ December 17, 2008: Message edited by: Bauke Scholtz ]