Re: Configuration via system properties
Matthias Radestock <[email protected]>
| Newsgroups | gmane.comp.java.sisc.user |
|---|---|
| Message-ID | <[email protected]> |
Dan <[email protected]> writes: >> It may actually be possible and not very expensive to make >> maxStackTraceDepth a dynamic parameter. Please raise a bug for that. > > Thanks for the openness. I have to admit I'm not too certain of how > dynamic parameters interact with threads (especially in a servlet > environment), as well as what gets saved in continuations... Would > there be an issue with adding a configuration parameter to the > constructor? Which constructor? DynamicEnvironments get initialised with an AppContext which in turn can be initialised with a Properties map. That should give you all the configurability you need. The interaction of dynamic parameters with threads and continuations is reasonably well documented. Basically, new threads inherit the dynamic parameters of their parent thread, and continuations take on the dynamic environment of whichever thread they execute in. >> iirc in my tests the performance dropped by around 30%. ymmv. > > And that happens even when no exceptions occur, right? Yes. Matthias. ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642