Out of curiousity, is an immediate response necessary (that the file was stored, etc.)? For example, you could (since you have the file in memory as it's uploaded) stuff the contents into a JMS message and send it off to an MDB (message driven bean). It would be in a message, not a file, so no worries about file processing.
Dan