File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes message driven beans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "message driven beans" Watch "message driven beans" New topic
Author

message driven beans

Miki Muzsi
Ranch Hand

Joined: Jun 23, 2003
Posts: 120
Problem

Which of the following must be supported by J2EE 2.0 Application
server regarding the deployment of message driven beans?


Options

Select 2 correct options.

1. It must allow deployment of a Message Driven Bean to listen for
multiple JMS queues.

2. It must allow deployment of multiple Message Driven Beans to listen
for single JMS queue.

3. It must allow deployment of a Message Driven Bean to listen for
durable subscriptions.

4. It must allow deployment of multiple Message Driven Beans in same
application to listen for single JMS queue.

5. It must allow deployment of a Message Driven Bean associated with a
JMS queue.

Answer: 3,5

Could anybody comment on this? I am not sure I understand what is the difference between 2 and 5.


Miki<br /> <br />SCJP 1.4, SCBCD 1.3
sawan parihar
Ranch Hand

Joined: Aug 24, 2004
Posts: 250
I am not sure I understand what is the difference between 2 and 5
2) It must allow deployment of multiple Message Driven Beans to listen
for single JMS queue.


Only one MDB should be deployed to listen to single JMS queue. If the server allows multiple MDBs to listen for single JMS queue then the behaviour is undefined. That means specs doesn;t say anything about which MDB will get the message.


It must allow deployment of a Message Driven Bean associated with a JMS queue

This point is correct as it is required by the specs that server should allow to associate 1 MBD with 1 JMS queue.


Hope that helps.


Sawan<br />SCJP,SCWCD,SCBCD<br /> <br />Every exit is an entry somewhere.
Miki Muzsi
Ranch Hand

Joined: Jun 23, 2003
Posts: 120
sawan , thanks for the answer. I did not read correctly the question, since I understood that 2 and 5 are different in "to listen
for single JMS queue" and "associated with a JMS queue". Where actually it is about multiple beans listening to a queue or one bean associated with a queue.

Miki
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: message driven beans
 
Similar Threads
mock questions
JMS Topic Multiple Subscribers Question!!!
component informs other component
287 Pre-assessment test questions - Please answer
Five new mock questions for SCBCD beta