cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <va...@reverycodes.com>
Subject Sitemap Reloading & Flow: Crashes
Date Wed, 29 Sep 2004 22:16:03 GMT
Hi all,

Seems like I found the reason why "touch sitemap" crashes all current flows. 
Sitemap reloading causes current sitemap to be released, together with flow 
Interpreter instance, and new sitemap looks up new instance of flow Interpreter. 
Because Interpreters are SingleThreaded, new instance is created. And after this 
change [1], each new instance has unique ID which causes scopes of all currently 
running flows to get lost:

   +    // The instance counters, used to produce unique IDs
   +    private static int instanceCounter = 0;
   +
   +    // The instance ID of this interpreter, used to identify user scopes
   +    private String instanceID;

Previously scopes where associated with sitemap path (which should be really 
sitemap path plus file name). Any insight on how to restore lost functionality? 
Any way to find out full sitemap URI?

Vadim

[1] http://marc.theaimsgroup.com/?l=xml-cocoon-cvs&m=108917975901961


Mime
View raw message