1 of 1 people found this helpful
Uno Kazuya wrote:
a JBossAS(client side) begins a JTA transaction, does some transactional works(like a EJB3 local session bean)
and invokes a web service.
another JBossAS(servier side) receives a web service request and does does some transactional works(like a EJB3 local session bean).
client side JTA transaction controlls whole transaction boundary.
so, JTA -> WS-AT transformation at client side, plus WS-AT -> JTA transformation at server side.
And if it is possible, is there a sample code?
Yes, this is possible in AS 6.. There is a transaction bridge package which can be used to perform bridging from JTA to WS-AT on the client side and from WS-AT to JTA on the server side. It includes a demo which shows how to bridge on the server side from WS-AT to JTA.
Look at the README in directory txBridge of the JBossTS release (for AS 6.0..0.Final the bundled version of TS is JBossTS 4.14.0.Final)
This describes the package and identiifies the location of the documentation. The docs provide full instructions for building and deploying the bridge code and writing/configuring your application to use it.
Thanks for fast reply!