What's the difference between Sessions Beans and Message DriveBeans?

2

There are two components responsible for business logic in the EJB architecture, the Session Beans and Message DriveBeans. I would like to know the difference of both and some example of its use.

    
asked by anonymous 04.12.2015 / 14:27

1 answer

1

While MDBs are stateless, SBs can be stateless or statfull in addition to MDBs having a short lifespan and accessing messages asynchronously. Also you can not access MDB through an interface.

    
04.12.2015 / 16:00