Q&A

Q1:What are the major differences between Message-Driven beans and Entity or Session beans?
A1: MDBs have no client interface; they have no Home, Local, or Remote interfaces—their methods cannot be called directly. MDBs exist only to consume JMS messages and are controlled by the container. They are anonymous and are called asynchronously. They do not have a passive state. They have no client security context.
Q2:What are the two interfaces an MDB must implement?
A2: The javax.ejb.MessageDrivenBean interface and the javax.jms.MessageListener interface.
Q3:What is the Method Ready Pool?
A3: The Method Ready Pool is the collection of MDB instances that are available in the container to consume JMS messages.
Q4:How can I associate an MDB with a queue or a topic?
A4: A queue or topic is associated with an MDB at deploy time. The queue or topic must have already been registered with the J2EE container.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.220.125.100