What is the difference between Stateless Session Beans and Message Driven Beans?

Answered

What is the difference between Stateless Session Beans and Message Driven Beans?

Ninja Asked on 18th September 2018 in EJB 3.x.
Add Comment
1 Answer(s)
Best answer

The difference between stateless session beans and message-driven beans are:

  1. The most visible difference between message-driven beans and session beans is that clients do not access message-driven beans through interfaces.
  2. Message driven bean has only a bean class whereas stateless session bean can have an interface and a bean class.
  3. Clients cannot interact with message-driven bean directly, they can interact indirectly by sending messages to JMS Queue or Topic.
  4. Message-driven beans process multiple JMS messages asynchronously, rather than processing a serialized sequence of method calls like session beans.
Ninja Answered on 18th September 2018.
Add Comment