The problem:
1)
Tomcat 3.3,
struts, web client.
2) Launch the printing of 1000 (yes, one thousand) pdf files.
One developers idea is to return a response immediately - after
launching background threads to complete the tasks.
My intuition is that this a bad idea for at least one reason:
The
servlet spec, as I understand it, allows a servlet container to
stop (destroy) an inactive servlet
thread anytime it feels like it.
My question: what happens to background threads if the servlet is
detroyed by the container? Is this a likely scenerio in this
situation? Does the choice of daemon or non-daemon threads make the
solution any cleaner?
My immediate suggestion was to use JMS, which I myself have used a lot
in servlets but this project is a bit scared of JMS. I also have
doubts Tomcat 3.3 could support it. (I've used openJMS a lot with
tomcat 4.x).
iksrazal