Hi, I use legstar 1.5.3 in Web Method (Software AG) to transform a cobol message to a Xml one.
I use eclipse plugin to genrate classes. After that, i use bind.HostToXMLTransformer
This work fine, instead that, because code is not thread safe, i have to deal with a resource pool.
I have a pool of HostToXMLTransformer object.
For each message, i make an HostToXmlTransformer.transform(inputBytes, writer, encoding)
with a HostToXmlTransformer gettted from the pool (with an equivalent of a lock)
But, that' why i write here, messages after messages, memory grows. It sounds like a memory leak, but perhaps it is a misuse of the component, of my hand.
In The dump file i saw that there is a _cobolComplexBindingCache object which is a hash map. Values of my messages are cached in it.
My question is : Why ?
I understand caching the structure, but why the values ?
My second point is, Is it possible to disable this cache or clear it after each message ?
Or is my using of legstar is wrong ?
Thanks for your help.