Thread: How to let more than one sessions work for same global transaction ?

In my application server, one db connection per thread. client may start  a galobal transaction ,immediacy or indirect
associateto a lot of app 
 
servers and more and more threads (db connections).