Example of thread switching during invocation processing -------------------------------------------------------- 10:13:26,351 INFO [org.wildfly.naming] (main) WildFly Naming version (unknown) 10:13:26,378 INFO [org.jboss.ejb.client] (main) JBoss EJB Client version 4.0.47.Final 10:13:26,390 INFO [org.jboss.as.test.clustering.cluster.AbstractClusteringTestCase] (main) begin txn: type = org.wildfly.transaction.client.RemoteUserTransaction, status = 0, thread = Thread[main,5,main] 10:13:26,390 INFO [org.jboss.as.test.clustering.cluster.AbstractClusteringTestCase] (main) check txn: type = org.wildfly.transaction.client.RemoteTransaction, status = 0, thread = Thread[main,5,main] 10:13:26,447 INFO [org.jboss.ejb.client.invocation] (main) TransactionEJBClientInterceptor: Calling handleSessionCreation: context transaction = null 10:13:26,447 INFO [org.jboss.ejb.client.invocation] (main) TransactionEJBClientInterceptor: Calling handleSessionCreation: setting context transaction to caller transaction: caller transaction = Remote transaction org.wildfly.transaction.client.RemoteTransaction$Unlocated@144440f5 // calling thread 10:13:26,451 INFO [org.wildfly.httpclient.ejb] (main) HttpEJBReceiver: createSession - thread = main // 1. get backend server 10:13:26,468 INFO [org.wildfly.httpclient.common] (main) HttpTargetContext: sendRequest - thread = main 10:13:26,470 INFO [org.wildfly.httpclient.common] (main) HttpConnectionPool: getConnection - thread = main 10:13:26,471 INFO [org.wildfly.httpclient.common] (main) HttpConnectionPool: runPending - thread = main 10:13:26,480 INFO [org.wildfly.httpclient.common] (main) HttpTargetContext: sedRequestInternal - thread = main 10:13:26,488 INFO [org.wildfly.httpclient.common] (main) HttpTargetContext: clientSendCallback:completed - thread = main // change thread on receive 10:13:26,509 INFO [org.wildfly.httpclient.common] (XNIO-1 I/O-1) HttpTargetContext: clientReceiveCallback:completed - thread = XNIO-1 I/O-1 10:13:26,510 INFO [org.wildfly.httpclient.common] (XNIO-1 task-3) HttpConnectionPool: returnConnection - thread = XNIO-1 task-3 10:13:26,511 INFO [org.wildfly.httpclient.common] (XNIO-1 task-3) HttpConnectionPool: runPending - thread = XNIO-1 task-3 10:13:26,515 INFO [org.wildfly.httpclient.common] (XNIO-1 task-3) HttpConnectionPool: getConnection - thread = XNIO-1 task-3 10:13:26,515 INFO [org.wildfly.httpclient.common] (XNIO-1 task-3) HttpConnectionPool: runPending - thread = XNIO-1 task-3 // use receiver thread for sending next request 10:13:26,516 INFO [org.wildfly.httpclient.common] (XNIO-1 task-3) HttpTargetContext: sedRequestInternal - thread = XNIO-1 task-3 10:13:26,516 INFO [org.wildfly.httpclient.common] (XNIO-1 task-3) HttpTargetContext: clientSendCallback:completed - thread = XNIO-1 task-3 10:13:26,540 INFO [org.wildfly.httpclient.common] (XNIO-1 I/O-1) HttpTargetContext: clientReceiveCallback:completed - thread = XNIO-1 I/O-1 10:13:26,542 INFO [org.wildfly.httpclient.ejb] (main) HttpEJBReceiver: Got backend server URI: http://localhost:8180?name=node-2 10:13:26,542 INFO [org.wildfly.httpclient.ejb] (main) HttpEJBReceiver: Using backend server: node-2 10:13:26,542 INFO [org.wildfly.httpclient.common] (XNIO-1 task-3) HttpConnectionPool: returnConnection - thread = XNIO-1 task-3 10:13:26,542 INFO [org.wildfly.httpclient.common] (XNIO-1 task-3) HttpConnectionPool: runPending - thread = XNIO-1 task-3 // 2. send session creation request 10:13:26,545 INFO [org.wildfly.httpclient.common] (main) HttpTargetContext: sendRequest - thread = main 10:13:26,545 INFO [org.wildfly.httpclient.common] (main) HttpConnectionPool: getConnection - thread = main 10:13:26,545 INFO [org.wildfly.httpclient.common] (main) HttpConnectionPool: runPending - thread = main 10:13:26,545 INFO [org.wildfly.httpclient.common] (main) HttpTargetContext: sedRequestInternal - thread = main 10:13:26,546 INFO [org.wildfly.httpclient.common] (main) HttpTargetContext: clientSendCallback:completed - thread = main 10:13:26,546 INFO [org.wildfly.httpclient.ejb] (main) HttpEJBReceiver: SessionCreationStickinesshandler.prepareREquest - thread = main 10:13:26,546 INFO [org.wildfly.httpclient.ejb] (main) SessionCreationStickinessHandler: calling SessionCreationStickinessHandler.prepareRequest for request ClientRequest{path='/wildfly-services/ejb/v2//open/-/EJBOverHTTPTestCase/-/StatefulIncrementorBean', method=POST, protocol=HTTP/1.1} // change thread on marshaling ue to use of XnioWorker.execute() 10:13:26,555 INFO [org.wildfly.httpclient.ejb] (XNIO-1 task-3) HttpEJBReceiver: createSession:HttpMarshaller - thread = XNIO-1 task-3 10:13:26,573 INFO [org.wildfly.httpclient.ejb] (XNIO-1 task-3) HttpEJBReceiver: writing transaction - type = 0 10:16:25,115 INFO [org.wildfly.httpclient.common] (XNIO-1 I/O-1) HttpTargetContext: clientReceiveCallback:failed - thread = XNIO-1 I/O-1 10:16:25,120 INFO [org.jboss.as.test.clustering.cluster.AbstractClusteringTestCase] (main) EJBOverHTTPTestCase : running after test 10:16:25,120 INFO [org.wildfly.httpclient.common] (XNIO-1 I/O-1) HttpTargetContext: clientReceiveCallback:failed - thread = XNIO-1 I/O-1 10:16:25,120 INFO [org.wildfly.httpclient.common] (XNIO-1 I/O-1) HttpConnectionPool: returnConnection - thread = XNIO-1 I/O-1 10:16:25,120 INFO [org.wildfly.httpclient.common] (XNIO-1 I/O-1) HttpConnectionPool: runPending - thread = XNIO-1 I/O-1