WEB-INF/resin-web.xml
<web-app xmlns="http://caucho.com/ns/resin"> <!-- - configures the bytecode enhancer <class-loader> <enhancer> <method annotation="javax.ejb.TransactionAttribute" type="com.caucho.transaction.enhancer.TransactionEnhancer"/> </enhancer> </class-loader> --> <!-- - Amber configuration --> <!-- <ejb-server data-source="jdbc/resin" create-database-schema="true"> </ejb-server> --> <!-- - configuration for the client. <servlet servlet-name="xa" servlet-class="example.SwapServlet"/> <servlet-mapping url-pattern="/xa" servlet-name="xa"/> --> </web-app>