Odd. I understood that containers should handle the System Exceptions
(Runtime Exceptions) by immediately discarding the bean and then throwing
'NoSuchObjectException' if the client makes subsequent invocations on the
stateful session bean (source Monson-Haefel, 3rd Edition)
You talk of the bean throwing a lot of Runtime Exceptions. That doesn't
sound good. The rule of thumb with exceptions is that RuntimeExceptions
should only occur as a result of a programming error, configuration error,
or terminal component failure (i.e. unrecoverable data corruption or the
like).
A correctly running, correctly configured system on a working database
should _NEVER_ throw Runtime Exceptions IMHO.
The FileNotFound exception sounds strange, but the bottom line is that this
situation should not be occurring in a normally operating system.
Regards
david
----- Original Message -----
From: Michael Jara
To: [EMAIL PROTECTED]
Sent: Thursday, January 03, 2002 5:01 PM
Subject: Re: [JBoss-user] Runtime Exceptions in Session Bean
I beleive that's according to spec, ejb1.1 and 2.0. RuntimeException is
treated as a non-application exception.
Mike
----- Original Message -----
From: Vinodh Lakshminarayan
To: [EMAIL PROTECTED]
Sent: Thursday, January 03, 2002 3:13 AM
Subject: [JBoss-user] Runtime Exceptions in Session Bean
Hello everyone
I have a peculiar case here.I have a stateful session bean which
basically talks to an Oracle database .The methods in the bean take care of
insert,update and deletion of rows and they throw a lot of runtime
exceptions.The problem is when there is a run time exception thrown the
exception is not propogated to the client but instead is caught by the
container.The server then tries to passivate the bean.An further calls to
this bean results in "FileNotFoundException : Could not activate the bean".
Any help is appreciated.
I am using JBoss-2..4.0_Tomcat-3.2.2 bundle.( I have also tried the
NoPassivation in jboss.xml but is of no use.It is still passivated when any
runtime exception is thrown.)
Do You Yahoo!?
Send your FREE holiday greetings online at Yahoo! Greetings.
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user