Hi,

perhaps you can use a configuration file (cxf.xml) like in 
http://cxf.apache.org/docs/bus-configuration.html. The entry:

<cxf:bus>            
<cxf:properties>            
<entry key="org.apache.cxf.stax.maxChildElements" value="60000"/>          
  
</cxf:properties>    
</cxf:bus>

should work...

Best regards
Björn 
 



Von:    "Duchaine, David" <duchaine.da...@hydro.qc.ca>
An:     "users@camel.apache.org" <users@camel.apache.org>
Datum:  02.10.2018 16:27
Betreff:        CXF : setting maxChildElements on endpoint



Hello everyone,

Camel version 2.21.2

We have configured a CXF Endpoint and getting the following exception 
while returning the response to the client:

Maximum Number of Child Elements limit (50000) Exceeded

While setting the

org.apache.cxf.stax.maxChildElements

as a system property on the JVM works, we'd prefer to have the property 
applied on a specific endpoint only.

As specified in the CXF Component doc, we tried setting the property on 
the URI as follows
but it doesn't work because we still hit the default limit:

properties.org.apache.cxf.stax.maxChildElements=100000

We've tried adding the following property but still no avail:

properties.org.apache.cxf.interceptor.OneWayProcessorInterceptor.USE_ORIGINAL_THREAD=true

Are we missing something here?

thanks,

David







 
Diese E-Mail könnte vertrauliche und / oder rechtlich geschützte Informationen 
enthalten. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail 
irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und 
vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte 
Weitergabe dieser Mail sind nicht gestattet.

This e-mail may contain confidential and / or privileged information. If you 
are not the intended recipient (or have received this e-mail in error) please 
notify the sender immediately and destroy this e-mail. Any unauthorised 
copying, disclosure or distribution of the material in this e-mail is strictly 
forbidden. 

Reply via email to