Bold Text Here
**
java.io.ByteArrayOutputStream fos = new java.io.ByteArrayOutputStream ();
java.io.ObjectOutputStream oos = new java.io.ObjectOutputStream(fos);
oos.writeObject(chmObjSessionKeyValue); //ConcurrentHashMap
oos.flush();
oos.close();
byte buff[]=fos.toByteArray();
ps.setString(2,strSessionId);
ps.setBytes(1,buff);
ps.execute();
//Read object
java.io.InputStream in=null;
while(rs.next())
{
in=rs.getBinaryStream(2);
}
java.io.ObjectInputStream oos = new java.io.ObjectInputStream(in);
java.util.concurrent.ConcurrentHashMap chmObjectSessionInfo=(java.util.concurrent.ConcurrentHashMap)oos.readObject();
CoreLogger.log("Concurrent hashmap object::"+chmObjectSessionInfo);
oos.close();
Inline Code Example Here
**
Bold Text Here