This content has been marked as final.
Show 3 replies
-
1. Re: jbossws - DOM vs SAX
ropalka Oct 17, 2009 4:16 PM (in response to coolq2)"urandom" wrote:
Can I configure jboss-ws to using sax parser?
No"urandom" wrote:
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) -
2. Re: jbossws - DOM vs SAX
coolq2 Oct 21, 2009 4:02 PM (in response to coolq2)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? -
3. Re: jbossws - DOM vs SAX
ropalka Oct 21, 2009 4:17 PM (in response to coolq2)JBossWS doesn't provide input stream hooks where you could check message size. Maybe tomcat can do it?