Catching exception in the case of constraint violation exception you must call 
em.flush() in order to force the exception in you session bean. After this you 
are most likely going to want to create a checked exception yourself and this 
is where you need to mark your checked exception with the annotation 
@ApplicationException otherwise JBoss will raise a RuntimeException

See this for full breakdown :-

http://www.jboss.com/index.html?module=bb&op=viewtopic&t=71611

Cheers

Jono

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3913567#3913567

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3913567


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to