We have a soap over jms webservice implemented with a camel route (Camel 3.2.0) and CXF that uses activemq as message broker. The webservice is deployed on a jboss eap 7.1 with jdk 1.8. Following the CXF upgrade from version 3.3.4 to 3.3.5 (and also with 3.3.6), jboss hangs on shutdown due to a blocking thread of CXF:
"ServerService Thread Pool – 82" #231 prio=5 os_prio=0 tid=0x0000000002981800 nid=0x66d2 waiting for monitor entry [0x00007f0d60d2f000]
java.lang.Thread.State: BLOCKED (on object monitor)
Therefore, we can have to kill the Jboss process to complete the shutdown.
The connection to activemq is managed by a resource adapter on jboss. Url is configured with a failover as follows:
Attached you can find the thread dump taken from logs.