Re: Flash, DirectAction and Sessions Question
Re: Flash, DirectAction and Sessions Question
- Subject: Re: Flash, DirectAction and Sessions Question
- From: James Cicenia <email@hidden>
- Date: Mon, 6 Nov 2006 16:23:19 -0600
OK -
Was looking over my code. I don't want it to be session based anywhere.
I will use this and fix a couple of other places where I found it to
create
a session.
thanks again,
James
On Nov 6, 2006, at 2:46 PM, Chuck Hill wrote:
On Nov 6, 2006, at 12:42 PM, James Cicenia wrote:
hmmmm....
I am using session().defaultEditingContext() to get a context to
query..
does that create a new session?
Yes. If you don't need the session:
EOEditingContext ec = new EOEditingContext();
ec.lock();
try {
// whatever
}
finally {
ec.unlock();
ec.dispose();
}
Chuck
On Nov 6, 2006, at 1:05 PM, Chuck Hill wrote:
On Nov 6, 2006, at 10:25 AM, James Cicenia wrote:
Hello -
One of my apps has a Flash front-end that has direct actions
associated with
certain buttons in the Flash.
I think this is causing my application to eventually stop taking
new connections.
I think it is just creating new sessions on and on till it
freezes and I have to
actually kill the instance.
Would this be killing my app?
Yes, if it ran out of memory.
Is there an easy way of maintaining or reducing the sessions?
Do the direct actions need a session? If not, remove whatever
code it is that references a session. If they do, Flash needs to
include the session ID in the URL it requests. I have done that
by passing the URLs as parameters to the Flash object.
Chuck
--
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve
specific problems.
http://www.global-village.net/products/practical_webobjects
--
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden