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?
Best answer
The difference between stateless session beans and message-driven beans are:
- The most visible difference between message-driven beans and session beans is that clients do not access message-driven beans through interfaces.
- Message driven bean has only a bean class whereas stateless session bean can have an interface and a bean class.
- Clients cannot interact with message-driven bean directly, they can interact indirectly by sending messages to JMS Queue or Topic.
- Message-driven beans process multiple JMS messages asynchronously, rather than processing a serialized sequence of method calls like session beans.