I have a RequestListener which will retrive two string values from a ServletContext on every request and data in these strings will be same across all the requests, it doesn't change. What would you suggest? Write a raw code to fetch out the strings on every request or a wrapper data object which maintain the strings once its initialized?
Thanks in advance! Ratheesh
SCJP 1.4 & SCBCD 1.5
Joined: Mar 22, 2005
Is there any particular reason you can't store the values in static fields in the listener object?