Let me explain with a scenario:
a j2se application is running on machie 1.
a glassfish installation with WSIT enabled is running in m2 and it has two web
services one for sending jms messages and the other one for inserting record
into database, these web services uses Servlet endpoint (no EJB stuff)
j2se application need to call this two web services in context of one transaction.
if jms operation failed in its web service then database operation should
rollbak or vice-versa.
I think it is a common condition and many developers will face this kind of