Thought should come from nothing.
Dave Cronin
SCJP, SCWCD, SCBCD
SCJP 1.4, SCWCD, SCBCD 1.3
Originally posted by Andrew Perepelytsya:
I guess, java.io.IOException can be thrown even in this scenario. Beans have a permission to read properties, and this operation throws the exception. Though, returning it to the client is not a good practice.
Can someone confirm?
Dave Cronin
SCJP, SCWCD, SCBCD
Co-Author of Head First Design Patterns
Just a Jini girl living in a J2EE world.
Which of these are correct?
A) javax.transaction.TransactionRolledBackException is a RemoteException.
True
But TransactionRolledbackLocalException is an EJBException which is RuntimeException
B) javax.transaction.TransactionRequiredException is an application exception.
False
Its again a RemoteException
C) the ObjectNotFoundException is an application exception.
False, its a FinderException
D) the NoSuchEntityException is an application exception.
Nope , its an EJBException
E) A multi-row finder method in an entity bean must throw a FinderException if no entities were found.
True, I guess
F) Application exceptions are converted into RemoteExceptions before being thrown to the client.
False, they are not changed
G) Application exceptions do not automatically result in a rollback of a transaction.
True,
H) System exceptions do not automatically result in a rollback of a transaction.
False,
OK, there you go.
cheers,
Kalpesh
Test 094, IBM WID 6.0 cert
SCJP 1.2
SCBCD 1.3 Beta
SCWCD 1.4 Beta
SCMAD Beta
SCDJWS Beta
KS
Originally posted by Dennis Shi:
a, c, g
Thought should come from nothing.
Dave Cronin
SCJP, SCWCD, SCBCD
public class ObjectNotFoundException
extends FinderException
The ObjectNotFoundException exception is thrown by a finder method to indicate that the specified EJB object does not exist.
Only the finder methods that are declared to return a single EJB object use this exception. This exception should not be thrown by finder methods that return a collection of EJB objects (they should return an empty collection instead).
Test 094, IBM WID 6.0 cert
SCJP 1.2
SCBCD 1.3 Beta
SCWCD 1.4 Beta
SCMAD Beta
SCDJWS Beta
KS
Dave Cronin
SCJP, SCWCD, SCBCD
Dave Cronin
SCJP, SCWCD, SCBCD
SCJP1.4,SCBCD
Failure is not when you fall down; its only when you fail to get up again.
Which one can be defined as an application exception?
A.EJBException
B.IOException
C.RemoteException
D.NoSuchObjectException
The answer is C. Concluded from the discussion below. June 05, 2003
[ June 05, 2003: Message edited by: ZheMin Lin ]
I didn't say it. I'm just telling you what this tiny ad said.
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|