if ( log.isDebugEnabled() )
{
log.debug( "The LateralCacheServlet has been called.\n" );
}
ICacheElement item = null;
try
{
// Create the ObjectInputStream with
// the Request InputStream.
ObjectInputStream ois = new ObjectInputStream( request.getInputStream() );
if ( log.isDebugEnabled() )
{
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 )
{
if ( log.isDebugEnabled() )
{
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