Freeman, Gert thanks for your replies.
Setting the queueSize to zero worked: now new threads are started as required and closed afterward. Setting it to -1 did not work, I report this in case you want to further investigate this case. For each client thread the number of cxf server threads used is about 1 and a half (20 clients -> 30 cxf threads). Do you think using a JMS flow for this case could require less threads? I expect some overhead but with less threads. I've started to study this page http://servicemix.apache.org/nmr-flows.html but here the JMS flow is described mostly in a cluster context. I'll give it a try as soon as I better understand how to configure flows. Thanks, bye Lorenzo
