#JBossWS/CXF Client Tests
This example demonstrates how JBossWS/CXF clients behave and how to configure them to behave according to your needs.
##Code
There are tons of Java files in this project since the purpose is to create a
very large WSDL which takes up a lot of memory within a Bus
object. To view
the pertinent classes that show how to properly utilize JBossWS and JAX-WS APIs
and synchronize client creation and invocation, look
here.
##Deploying
mvn jboss-as:deploy
##Running the test and Options
test.sh
will use curl
to invoke a client servlet, which will then invoke a
SOAP endpoint. The script will concurrently invoke the servlet 30 times,
causing 30 threads to be spawned by JBossWeb to handle all the requests. There
are two options that can be added to the URL passed to curl
:
?shared
: Clients will share oneService
object, but each thread will create its own proxy/port.?useTcclStrategy
: This will cause anyService
object created duing this particular invocation to be created with theUseTCCLBusFeature
, as described here.
WARNING: If you do not use either of the above options, expect your JBoss server to run out of memory.