RE: Scheduled DB clean up service with Struts2

2008-04-11 Thread Frank Fischer
the system (or at least when the quantity of concurrent users in > the system be at the absolute minimum), but since this is executed > when somebody makes a request to the web app, there is no warranty > that this task be executed at all. > > 2008/4/11, Frank Fischer <[EMA

RE: Scheduled DB clean up service with Struts2

2008-04-11 Thread Frank Fischer
Sorry, of course i meant servlet context listener, not servlet filter > However, I would like to use my certain action > methods, since they already contain all the > funtionalities for DB acces. Then i guess it would be a smart way by letting spring inject the DBA object into your action(s

RE: Scheduled DB clean up service with Struts2

2008-04-11 Thread Frank Fischer
I would have thought of implementing the clean up service as servlet filter outside struts. Or doing the same within an interceptor. Are there any dependencies that would need the clean up service to be bound to a session context? - Frank > -Original Message- > From: [EMAIL PROTECTED

Best Pratices for Access Restriction and Authentication?

2008-03-20 Thread Frank Fischer
Hi all Creating my first struts2 web application i came to the point where questions about access restriction and authentication pop up. I read some articles about these topics that cover certain single aspects but none of them seem to answer all my questions. As far as i learned, i think best

RE: [S2] application context

2008-03-19 Thread Frank Fischer
Hi I asked the same questions just some days ago. Please read http://mail-archives.apache.org/mod_mbox/struts-user/200803.mbox/%3c20080313 [EMAIL PROTECTED] You will find all information there (have a look at the first and the last message in the thread). Frank > -Original Message- > Fr

RE: How to initialize business service objects?

2008-03-19 Thread Frank Fischer
Hi Dave Hi all Finally i got it working the "spring"-way, meaning, when also delegating the instantiation of action classes to spring. The "default" way, meaning letting struts2 creating the action instances still doesn't work and i really don't understand why. Thanks to everyone that help me get

RE: How to initialize business service objects?

2008-03-17 Thread Frank Fischer
Hi Michael Thanks for your answer. > 1) You have included the struts2-spring-pliugin.jar in your classpath Yes, it put it under "WEB-INF/lib/" so it's packaged to the war file and should be available to tomcat it think. I also can't see any error or warning messages while deploying the applicati

RE: How to initialize business service objects?

2008-03-17 Thread Frank Fischer
Hi all first i'd like to thank all of you that have given me valuable feedback to my question. Following the answers from Dave and Jeromy i decided to go the "hard" way with Spring and DI. After reading some manuals (thanks to GF, good reading) i managed to load the Spring ContextLoaderListene

RE: How to initialize business service objects?

2008-03-13 Thread Frank Fischer
s in > Struts. > > Regards, > Randy Burgess > Sr. Web Applications Developer > Nuvox Communications > > > > > From: Frank Fischer <[EMAIL PROTECTED]> > > Reply-To: Struts Users Mailing List > > Date: Thu, 13 Mar 2008 22:32:34 +0100 > >

How to initialize business service objects?

2008-03-13 Thread Frank Fischer
Hi all i'm just starting with struts2 (even with struts at all). Of course i first read some how-to-starts. But there is one thing i don't understand. I'm trying to create a simple little chat app. I have two action classes, one for the normal chat user, one for the moderators. Both classes nee