On Mon, 9 Jul 2001, Scott M Stark wrote:
> Since the notion of local interfaces was introduced at the Container
> base class level, why is the MessageDrivenContainer throwing a runtime
> exception instead of simply returning null? This is not a valid
> implementation
> of the ContainerInvokerContainer contract because no exceptions are
> declared in the interface. The only reason the compiler is not complaining
> is that
> an unchecked exception is being thrown which leads to the runtime error
> being
> seen.
>From the beginning the existing container system for ejb was used as a
convinient method to implement MDB in the JBoss container system. The
contract all was done according with was that no one was ever allowed to
get the remote and home interfaces of an MDB. That it at al was
theoretically possible to do this was because the MDB container inherited
from a "fat" contianer with more methods that was actually needed by the
MDB. I therefore made all these methods throw a runtime exception to
really mark theses methods as "hands of".
This was never discussed on the list, it was just my descission. Mybe it
is not needed any more...since all now is aware of that there are an MDB
container wich the container developers have to acknowledge (the latest
problem does not ver ify this however).
//Peter
> > > >
_______________________________________________
> Jboss-development mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-development
>
Jobba hos oss: http://www.tim.se/weblab
------------------------------------------------------------
Peter Antman Technology in Media, Box 34105 100 26 Stockholm
Systems Architect WWW: http://www.tim.se
Email: [EMAIL PROTECTED] WWW: http://www.backsource.org
Phone: +46-(0)8-506 381 11 Mobile: 070-675 3942
------------------------------------------------------------
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development