Win a copy of React Cookbook: Recipes for Mastering the React Framework this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Rob Spoor
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Himai Minh

Enthuware question doubt

 
Ranch Hand
Posts: 357
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
this is the question:


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 ??

 
Ranch Hand
Posts: 268
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You are right if you consider JCA.
But question is not talking about JCA at the moment, and if you think about default, you choice is correct.

JCA is an option but Messagelistener is default, so there is no ambiguity about question.

Thanks.
 
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The question is

Which of the following are true regarding the implementation of an EJB 3.0 JMS Message Driven Bean?


The keyword here is JMS those message listener inferface consists of onMessage(). So (1) is correct.
 
Omar Al Kababji
Ranch Hand
Posts: 357
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks.
 
You had your fun. Now it's time to go to jail. Thanks for your help tiny ad.
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic