Can I configure jboss-ws to using sax parser?
If not why dom was chosen.
There are many reasons:
* we're leveraging Sun tools which are using DOM
* SAX parser have schema validation limitations/issues
* architecture decision (either DOM or SAX, but not both)
I agree with you that dom is a better choice, on the whol you shouldn't send big data via ws.
But, what is going to happen when somebody sends to my jboss-ws big request ? He may invoke the OutOfMemoryError and the jvm will go down.
Can I set maximum size of request in jboss-ws or tomcat?
JBossWS doesn't provide input stream hooks where you could check message size. Maybe tomcat can do it?