Which of the following are true regarding the implementation of an EJB 3.0 JMS Message Driven Bean?
1) The class must have, directly or indirectly, a non abstract onMessage method.
2) It may implement finalize() method
3) It must implement setMessageDrivenContext() method.
4) None of these.
According to the exam simulator the correct answer is (1).
I agree that it is right if I am implementing the MessageListener interface, then i will have to implement its onMessage() method. but what if I am implementing some other type of message listener (as it is said that you can use other JCA connector .. bla bla bla) that has some other method, which its not called onMessage(). at this point the correct answer would be (4).
what do you think ??
Omar Al Kababji - Electrical & Computer Engineer
[SCJP - 90% - Story] [SCWCD - 94% - Story] [SCBCD - 80% - Story] | My Blog