solved adding (rollback=true) to ApplicationException tnx anyway ;)
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3918371#3918371
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3918371
-
can't fix this problem, am i doing something wrong?
My Exception:
| @ApplicationException
| public class CreateAccountException extends Exception {
|
| public CreateAccountException(String message) {
| super(message);
| }
| }
|
My Entity Field:
| @Column(
Any checked exceptions raised should all be annotated with
@ApplicationException so that the container does not raise them as a
RuntimeException which is what is happening in this case.
Cheers
Jono
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3913570#39135
I have a similar problem.
My Slsb have method:
| public void addUser(User user) throws Exception {
| try {
| em.persist(user);
| em.flush();
|} catch (ConstraintViolationException e) {
| throw new UserAlreadyExistsException(
|