Created
June 5, 2012 12:17
-
-
Save paulrobinson/2874662 to your computer and use it in GitHub Desktop.
WSBA -> JTA Bridging with TXFramework (params)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@BA | |
@Stateless @Remote(Bistro.class) @WebService() | |
@TransactionAttribute(TransactionAttributeType.MANDATORY) | |
public class BistroImpl implements Bistro | |
{ | |
@PersistenceContext protected EntityManager em; | |
@WebMethod | |
@ServiceRequest | |
public void bookSeats(int howMany) { | |
//Use em to increase booking count in DB | |
} | |
@Compensate | |
private void compensate(int howMany) { | |
//Use em to decrease booking count in DB | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment