-
1. Re: Unchecked Exception break stateful session bean via EJBN
bill.burke May 10, 2006 2:49 PM (in response to ejb3workshop)system exceptions cause the bean to be discarded.
-
2. Re: Unchecked Exception break stateful session bean via EJBN
ejb3workshop May 10, 2006 7:34 PM (in response to ejb3workshop)I took a look at the spec. In my example i am throwing a RuntimeException. What makes this a System exception. Is there a way I can annotate this, to avoid the bean being discarded. It seems to me that there are a number of exceptions (EntityNotFound etc) which cause this behaviour.
Thanks for your feedback
Alex
ejb3workshop.com -
3. Re: Unchecked Exception break stateful session bean via EJBN
bill.burke May 11, 2006 12:28 AM (in response to ejb3workshop)@ApplicationException
public MyRuntimeException extends RuntimeException {}
For the persistence exceptions, yes, this sucks, but you can fix it within ejb-jar.xml with the application-exception element. -
4. Re: Unchecked Exception break stateful session bean via EJBN
rdewell Jun 15, 2006 11:50 PM (in response to ejb3workshop)Is there logging somewhere that says:
Removing XYZ SFSB due to exception: blah blah..?
That might be helpful at least. We're getting EJBNoSuchObject exceptions in our log all over the place with no clear reason why -- there are no other exceptions in the log files.
Ryan