Deal of the Day

Home » Main » Manning Forums » 2003 » Bitter EJB

Thread: Exception Handling in Stateless SessionBean

Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 1 - Pages: 1 - Last Post: Sep 10, 2004 5:48 PM by: chunkey Threads: [ Previous | Next ]
xananagusmao

Posts: 3
From: Kuala Lumpur, Malaysia
Registered: 6/8/04
Exception Handling in Stateless SessionBean
Posted: Jun 8, 2004 6:35 AM
  Click to reply to this thread Reply

The book suggests that all RuntimeExceptions (includes EJBException, NPE, RollbackExceptions etc...) are thrown back to the SLSB client. See the code for NestedException.
Why ? Also NestedException is a direct subclass of RuntimeException! I think it would be better to subclass from EJBException. What is the rationale for doing that ? Note that I understand that any RuntimeExceptions thrown from a business method in a SLSB will rollback the Tx.

Xanana

chunkey

Posts: 1
Registered: 9/10/04
About jsp
Posted: Sep 10, 2004 5:48 PM   in response to: xananagusmao in response to: xananagusmao
  Click to reply to this thread Reply

THE DIFFERANCE BETWEEN "request" and "session" atribute values in <jsp:useBean...../> tag

Legend
Gold: 300 + pts
Silver: 100 - 299 pts
Bronze: 25 - 99 pts
Manning Author
Manning Staff
Manning Developmental Editor