Re: Too Many Sessions Are Being Generated
Re: Too Many Sessions Are Being Generated
- Subject: Re: Too Many Sessions Are Being Generated
- From: Jonathan Miller <email@hidden>
- Date: Mon, 8 May 2006 15:15:20 -1000
NSLog.debug.appendln(new RuntimeException("Session Created"));
Thank you for that tidbit. Turns out it was my mistake I did have
WOCondition that was referencing a session object.
Thanks a million
Jon
On May 8, 2006, at 10:02 AM, Chuck Hill wrote:
On May 8, 2006, at 12:49 PM, Jonathan Miller wrote:
Hi Paul,
Thanks for that and indeed I did have a component action in the
parent component (search box). However after moving that to a
DirectAction I still have not seemed to have fixed the problem.
What is more confusing is that I load all my content out of XML so
at this point I shouldn't be talking to EOs at all.
Does a session automatically get created for each request if a
wosid is not found in the URL?
Not unless you reference the session (or use something that
references the session). Here is what I would do. Add this to
your session constructor:
NSLog.debug.appendln(new RuntimeException("Session Created"));
Then hit the direct action and check the stack trace to see where
the session is coming from.
Could WOImage be creating a session?
I think it will if you are using the value or data bindings.
Chuck
On May 8, 2006, at 3:48 AM, Paul Suh wrote:
Jon,
The problem is probably not in the use of the shared EC, but in
the page that you are generating. If you have *any* component
actions on the page then it will automatically generate a Session
object to keep track of the component actions, even if you are
getting to the page via a direct action. Beware that component
actions may be embedded in subcomponents (e.g. a standard
navigation bar that you use on all pages) and may not be
immediately obvious. The editing contexts don't know and don't
care about sessions at all.
--Paul
Paul Suh
http://www.ps-enable.com/
email@hidden (301) 643-1516
On May 5, 2006, at 11:42 AM, Jonathan Miller
<email@hidden> wrote:
In my Direct Actions I'm using the
EOSharedEditingContext.defaultSharedEditingContext() to locate
an EO
that is used for the page generation. For some reason this is
creating a session per Direct Action (According to Monitor). Does
anyone know why?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40global-village.net
This email sent to email@hidden
--
Coming in late 2006 - an introduction to web applications using
WebObjects and Xcode http://www.global-village.net/wointro
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