Skip to content

Instantly share code, notes, and snippets.

@paulrobinson
Created May 16, 2012 08:38
Show Gist options
  • Save paulrobinson/2708745 to your computer and use it in GitHub Desktop.
Save paulrobinson/2708745 to your computer and use it in GitHub Desktop.
Bridging with TXFramework
@AT //By default bridge to JTA
@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
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment