transaction « ejb « Java Enterprise Q&A

1. EJB 3 Transaction attribute for read only method

I have a method that returns lot of data, should I use @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED) for this method. The method perform a JPA query an loads the full content of a table (about ...

2. How to "do something" after an EJB3 transaction commit?

Is there something in EJB3 that allows me to execute some code just after the transaction commit (I want to send XMPP messages to notify external devices for updates) ? I know ...

3. How to perform XA transaction in EJB?

I have a MDB listening to particular topic. I have configured XA data source with jboss... I have set persistance .xml

<persistence-unit name="jpa" transaction-type="JTA">