Re: Preventing duplicate form submission
Tor Iver Wilhelmsen wrote:
"Daniel Pitts" <googlegroupie@coloraura.com> writes:
Really? I never heard that. It might make sense, but I'd like to read
more about that. Can you give a citation? One of our tools does a lot
of multitasking, but if it should be done another way, I'd like to know
why/how.
I might be mistaken, I heard it sometime back in the bad old days of
EJB 1.1 and wrestling with Websphere 3; probably from some IBM
consultant.
So, a modified statement: You can use thread in applications running
in a container like Tomcat etc. *as long as they don't operate on
objects managed by the container's lifecycle mechanisms*.
servlet container : bad practice
EJB container : strictly forbidden
EJB 2.1 spec section 25.1.2:
The enterprise bean must not attempt to manage threads. The enterprise
bean must not attempt
to start, stop, suspend, or resume a thread, or to change a thread?s
priority or name. The enterprise
bean must not attempt to manage thread groups.
(it is in previous EJB specs as well)
Arne