cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard Eckart <wyldf...@users.sourceforge.net>
Subject Cleaning up after JavaFlow
Date Tue, 03 Apr 2007 18:19:52 GMT
Hi everybody,

I am fetch resources in JavaFlow that I need to free when I do not  
use them anymore. So I need to know what happens if a JavaFlow  
continuation expires (e.g. because the user decided that some other  
webpage is more interesting). Is there any way to make sure resources  
are freed? Currently I use something like:

	Resource r = null
	try {
		r = getResource();
		<LOGIG, SHOW FORMS, FLOW, ETC.>
	}
	catch (...) {
  		...
	}
	finally {
		r.free();
	}

But I have doubts that the finally block is executed if the  
continuation is abandoned. Any ideas?

Greets,

Richard

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message