Retaining a DTMManager will indeed retain the documents it has cached,
which is not what you want in this case.

To solve this, I believe you can simply discard the Transformer after use,
and obtain a new one from the TransformerFactory. Since the DTMManager is
associated with the Transformer, this should result in flushing the cache
and starting a new one.

______________________________________
"... Three things see no end: A loop with exit code done wrong,
A semaphore untested, And the change that comes along. ..."
  -- "Threes" Rev 1.1 - Duane Elms / Leslie Fish
(http://www.ovff.org/pegasus/songs/threes-rev-11.html)

Reply via email to