Hi all,
 
I would like to keep a pool of LSParsers objects which can be used by my application for parsing XML.
I'm using Commons Pool for the implementation of the pool where I'm using a BaseKeyedPoolableObjectFactory for creating the LSInputs, LSOutputs, LSSerializers and LSParsers.
 
It works nicely and much faster as I don't have to create the parser object anymore but I'm seeing that some memory is leaking on the LSParsers. (it seems the xml document I parsed with it stays in memory when I put back the LSParser object in the pool)
 
I guess this is normal because I couldn't find any sort of clear() or reset() method on the LS* objects.
 
I would like to know if it's possible to add some kind of clear()/reset() method on the LS* objects which I can call when I return the LS* objects back to the pool ?
 
kind regards,
Wim Bervoets


-----Disclaimer-----

This message may contain confidential information intended solely for the use of the named addressee. If you are not the intended recipient, you should not read, use, disclose or reproduce the content of this message. If you have received this message by mistake, please notify the sender immediately. Any views or opinions presented in this message are solely those of the author and do not necessarily represent those of AXA Belgium, AXA Bank Belgium, AXA Tech Belgium GIE - ESV or any other entity of the AXA Group, unless otherwise stated by the sender and duly authorized by the said companies.

---------------------

Reply via email to