Re: Java Monitor Sessions Question
Re: Java Monitor Sessions Question
- Subject: Re: Java Monitor Sessions Question
- From: James Cicenia <email@hidden>
- Date: Wed, 28 Apr 2004 20:41:09 -0500
Ahhh very interesting. I use no DirectActions, at least not explicitly.
But, I do hit session a lot! Half my app uses the current selection all
the time. Heck I even thought it was encouraged being as it is always
the default object in WOBuilder.
I have the current portfolio, project and user in session and access
them via ((Session)session()).user();
What is the proper approach here?
-James Cicenia
On Apr 28, 2004, at 3:56 PM, Jonathan 'Wolf' Rentzsch wrote:
James Cicenia, email@hidden, wrote:
My active sessions in JavaMonitor seem awfully high considering there
is only one person testing the application.
I see 14, 22 etc.
Is it correct? Is my program not releasing sessions? (Say a close
window from one of my popups?)
Use a lot of DirectActions? Hitting session() -- either explicitly in
your code or implicitly though certain stock WOComponents -- will
lazily
create a session.
I have a deployed app that should almost never create a session. So, I
log a warning message whenever a session is created:
import org.apache.log4j.Logger;
public class Session extends WOSession {
private static Logger log = Logger.getLogger( Session.class );
public Session() {
super();
log.warn( "session created" );
}
public Session(String sessionID) {
super(sessionID);
log.warn( "session created" );
}
}
This technique can help you narrow down where all those sessions are
coming from.
| Jonathan 'Wolf' Rentzsch http://rentzsch.com
| Red Shed Software http://redshed.net
| "better" necessarily means "different"
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.