I wanna make sure I understand this correctly. You were originally using the session().defaultEditingContext() to fetch data for your RSS feed. I am assuming you are accessing the RSS feed from a direct action, so when accessing session() you are getting an unneeded session for each request. You then decided to use the defaultSharedEditingContext in place of the session().defaultEditingContext() to prevent the creation of a new session. If this is accurate them my first question would be: Why did you not create a new instance of EOEditingContext and use that instead of session().defaultEditingContext()? This will prevent creating a new session for each request and will not have the issues related to the shared editing context. You should also examine the documentation on "Fetching Data > Ensuring Fresh Data" in this document: Example: public WOActionResults myRSSFeedAction() { EOEditingContext ec = new EOEditingContext(); ec.lock(); /* Fetch your data and generate RSS feed here */ ec.unlock(); } On May 15, 2006, at 2:57 PM, Dev WO wrote:
|
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]
