How 'messaging' supported in EJB 2.0 Specification?

Answer Posted / guest

The EJB 2.0 Specification defines JMS support through a new
type of enterprise bean, the message-driven bean. A
message-driven bean is invoked by the EJB container as the
result of the arrival of a JMS message. To a client, the
message-driven bean is a JMS consumer that implements some
business logic on the server. Clients communicate with
message-driven beans by sending messages to a JMS
Destination (either a Queue or a Topic) for which the
message-driven bean is a MessageListener.

Message driven beans are distinct from both Entity and
Session beans. They have neither home nor remote interfaces.
Instead, they implement the javax.jms.MessageListener
interface.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the advantage of using entity bean for database operations, over directly using jdbc api to do database operations? When would I use one over the other?

732


Enlist the changes in EJB 2.1 ?

658


can we stop the execution of a method before completion?

2595


What are the limitations of using local object?

607


Differentiate Phantom from Un-repeatable?

646






What is enterprise bean provider?

692


Can remove() be a Stateless Session bean?

663


What are the components of ejb?

647


An instance of stateful session ejb when accessed simultaneously from more than one clients on same vm results in remoteexception or ejbexception. In case the client is a servlet thread, which of the techniques can be used to avoid remoteexception/ejbexception?

641


What is @autowired required false?

667


Define Clone?

670


What is the procedure of ejb container to handle exceptions?

630


Write down the steps for the creation of stateless ejb.

672


What are the differences between ejb 3.0 and ejb 2.0?

610


How to invoke ejb from java client?

615