Cheers<br /> <br />What's with the bottom line.<br />_ _ ____________________ _ _<br />SCJP 1.4, SCBCD 1.3, Prepping for SCEA.....
Originally posted by Adela Popescu:
Which of the following is performed by the container if a message-drive bean does not complete its transaction before the end of the onMessage() method?
Possible answers:
A.Log an aplication exception
B.Roll back the started transaction
C.Discard the instance of the bean
D.Throw an exception.
Originally posted by Adela Popescu:
Hi,
The question is:
Which of the following is performed by the container if a message-drive bean does not complete its transaction before the end of the onMessage() method?
Possible answers:
A.Log an aplication exception
B.Roll back the started transaction
C.Discard the instance of the bean
D.Throw an exception.
I have marked B and C but answer A should also be true. Is this correct?
I have understand that the container logs only system exception. Also in this case, the container cannot receive an application exception.
Regards,
Adela
[SCJP2, SCWCD1.3, SCBCD]
1. Option A given in the book is- Application ERROR not exception.
SCJP, SCWCD, SCBCD, OCA J8
Originally posted by Keerthi P:
Leena,
The term 'error' referred to here does not mean java.lang.Error. In this case, the bean instance has left the transaction open when the onMessage() method has finished. The container detects it and logs the problem. It does not mean that the admin gets to see a stacktrace of java.lang.Error. He sees an error which would be an EJBException. My answer for this question would be A, B & C.
[SCJP2, SCWCD1.3, SCBCD]
Originally posted by Adela Popescu:
Hi Keerthy,
EJBException is a system exception, not application exception. For me answer A is not correct. In this case the container logs a system exception
Regards,
Heidi
[SCJP2, SCWCD1.3, SCBCD]
BTW, did anyone tell you about the Javaranch Naming Policy?
SCJP, SCWCD, SCBCD, OCA J8
SCJP 1.4(98%)<br />SCBCD1.3 (100%)<br />SCWCD 1.4 (93%)(w/o prep..n)
Read carefully.
1. Option A given in the book is - Application ERROR not exception.
SCJP, SCWCD, SCBCD, OCA J8
Originally posted by Keerthi P:
Would you mind telling me what is wrong with my name ? I can change it if it is violating the naming policy. But I read I can use initials in display name.![]()
[ March 08, 2005: Message edited by: Keerthi P ]
I understand that in some cultures there is no such thing as "first name and last name" - there is just one name. If you are one of these people, I would like to humbly ask you to sacrifice a piece of your culture to help me build this culture.
[SCJP2, SCWCD1.3, SCBCD]
Originally posted by Keerthi P:
Possible answers:
A.Log an application error
Leena: They have mentioned 'application error' and not 'application exception'.
Leena: I wanted to correct the 'question' posted. I emphasised on the word ERROR by capitalising it.
[SCJP2, SCWCD1.3, SCBCD]
It is no measure of health to be well adjusted to a profoundly sick society. -Krishnamurti Tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|