transaction « ejb « Java Enterprise Q&A





1. EJB 3 Transaction attribute for read only method    stackoverflow.com

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?    stackoverflow.com

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?    stackoverflow.com

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">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
 <jta-data-source>java:jdbc/BKS_DataSource</jta-data-source> 
<class>com.jms.mdb.SampleData</class>    
<properties>

   ...