{
cacheMgr = CompositeCacheManager.getInstance();
log.debug( "cacheMgr was null in LateralCacheServlet" );
}
ICacheElement item = null;
try
{
// Create the ObjectInputStream with
// the Request InputStream.
ObjectInputStream ois =
new ObjectInputStream( request.getInputStream() );
log.debug( "after getting input stream and before reading it" );
// READ POLLOBJ
item = ( ICacheElement ) ois.readObject();
ois.close();
}
catch ( Exception e )
{
log.error( e );
}
if ( item == null )
{
log.debug( "item is null in LateralCacheServlet" );
}
else
{
String hashtableName = item.getCacheName();
Serializable key = item.getKey();
Serializable val = item.getVal();
log.debug( "item read in = " + item );
log.debug( "item.getKey = " + item.getKey() );
CompositeCache cache = ( CompositeCache ) cacheMgr.getCache( hashtableName );
try
{
// need to set as from lateral