Re: AW: Multithreading FOP ?

2002-04-14 Thread Arnd Beißner
Peter B. West wrote: I like statics. They are smaller and faster; what's not to like? Before continuing with them, though, I need to make sure that I understand the problems. Yes to smaller and faster, though if the existance of statics forces you to use synchronization, your mileage may

Re: AW: Multithreading FOP ?

2002-04-14 Thread Arnd Beißner
Jeremias Maerki wrote: As far as I know, you can't assume that, because the statics are global within the context of a ClassLoader and not the JVM. Normally though, you have only a simple ClassLoader hierarchy. In that case your assumption is right. But it isn't as soon as some complex

Re: AW: Multithreading FOP ?

2002-04-13 Thread Peter B. West
Folks, Please indulge my ignorance again. May I assume that it is not possible to run two main()s in the same VM? From this discussion so far I have gained much more insight into the nervousness about statics. Is the problem that servers want to execute multiple instances of classes

Re: AW: Multithreading FOP ?

2002-04-13 Thread J.Pietschmann
Peter B. West wrote: Please indulge my ignorance again. May I assume that it is not possible to run two main()s in the same VM? Not in the sense you probably mean. From this discussion so far I have gained much more insight into the nervousness about statics. Is the problem that

Re: AW: Multithreading FOP ?

2002-04-13 Thread Peter B. West
Joerg, Thanks, it does answer my questions, and raises a few others. I'm heartened by this, because what you have described is the inappropriate use of global data in a multi-threaded context. I'm interested because I like statics. They are smaller and faster; what's not to like? Before

RE: AW: Multithreading FOP ?

2002-04-13 Thread Arved Sandstrom
-Original Message- From: Peter B. West [mailto:[EMAIL PROTECTED]] Sent: April 13, 2002 11:15 PM To: [EMAIL PROTECTED] Subject: Re: AW: Multithreading FOP ? [ SNIP ] It seems to me, of what I have heard so far, that there is no problem with statics _per se_. If they are used

Re: AW: Multithreading FOP ?

2002-04-12 Thread Arnd Beißner
Peter B. West wrote: Please excuse my ignorance of these issues, but what mechanisms would folks expect to use to set per-invocation configurations for FOP? One problem you may run across is that configuration in FOP is help in global objects. Besides not being thread-safe you will not be

Re: AW: Multithreading FOP ?

2002-04-11 Thread Peter B. West
Please excuse my ignorance of these issues, but what mechanisms would folks expect to use to set per-invocation configurations for FOP? Peter Chaumette, Patrick wrote: Thanks for the infos, also got this from Arnd -- One problem you may run across is that configuration in