It's not a secret anymore!
The moose likes EJB and other Java EE Technologies and the fly likes Session Bean exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Session Bean exception" Watch "Session Bean exception" New topic

Session Bean exception

Ranadhir Nag
Ranch Hand

Joined: Mar 09, 2006
Posts: 138
I believe to have read that RunTimeExceptions raised from session beans do not propagate as-is to client;and cause beans to be removed from the pool and obliterated.
We have a stateless session bean throwing an IllegalArgumentException.
This get wrapped as EJBException at the client which is as expected.
However,we do not see the bean instance being discarded from the pool ( ejbremove is not invoked).

I would have expected the ejbremove to have been invoked for this bean instance.
THe pooling parameters are:

Any help is appreciated.

I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Session Bean exception
It's not a secret anymore!