We needed to make an object persistent for as long as Axis, and provide access to that object for all of our services.  To do this we subclassed AxisServlet, and in this class created an instance of our object as a singleton with a static get method.  This seems to work well for our needs, and is simpler and faster than accessing the ServletContext.
 
Are there any drawbacks to this technique, given our requirements?
 
TIA,
Ian

Reply via email to