EJB 2 EJBException or CreateException?

J

John_Woo

Hi,

I'm using EJB 2. I want to be clear the EJBException vs.
CreateException.

Say, a web app for online purchase.

web client calls session Facade, the session Facade calls cmp. both
session and cmp can catch and rethrow exception.

I'm wondering, which one <session or cmp> throw which exception; and
how to maintain that, if the stateful bean will still contain shopping
info even catches exception thrown by cmp, and how to make stateful
bean refresh <no more contain previous shopping info> after catches
the exception thrown by the cmp?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,981
Messages
2,570,188
Members
46,731
Latest member
MarcyGipso

Latest Threads

Top