EJB programming & troubleshooting: Throw CreateException in Stateless sbean's ejbCreate
I just wonder what would happen if I throw CreateException in a stateless session bean's (slsb) ejbCreate(). Recall that slsb's ejbCreate() is called by container when it create bean pool and has nothing to do with the client callling create().
- Posted by: tsc alyl
- Posted on: July 16 2004 07:05 EDT
The problem is, according to the spec, the container should propagate the CreateException - which is considered just an application exception - back to the client. But which client should the container received it?
The same problem applies to RemoveException in ejbRemove() too.
- Throw CreateException in Stateless sbean's ejbCreate by Senthil Chinnaiyan on July 16 2004 08:53 EDT
Simple, Your container is the client in this case(invoking create method), So it will be reported in your container's log file or console. :)