Hi,
I'm quite new to EJB3. I have simple code which should rollback transaction. (as far as I know)
Issue is that it is not rolling back transaction.
Here is the code:
--------------------------
@ApplicationException(rollback=true)
public class ApplicationFailureException extends Exception {
public ApplicationFailureException() {}
}
------------------------
@Remote({PersonService.class})
@Stateless
public class PersonServiceEjbImpl implements PersonService, Serializable {
@PersistenceContext(unitName = "SeeOneServicesEjbImplPU")
EntityManager em;
public void updatePersonSalary(long personID, long salary) throws ApplicationFailureException {
PersonEntity pe = em.<PersonEntity>find(PersonEntity.class, Long.valueOf(personID));
pe.setSalary(salary);
throw new ApplicationFailureException();
}
}
I'm working on GF v2ur2
Any idea why the above code do not roolback transaction.
Thanks
Robert
[Message sent by forum member 'robert74' (robert74)]
http://forums.java.net/jive/thread.jspa?messageID=281110