EJB : Message Driven Bean [ MDB ]
What is MDB ( Message Driven Bean )? |
MDB has the following behaviour
- Is stateless
- is a JMS listener
- when a JMS message arrives the method onMessage() is executed
- does not survive EJB server crashes
- provides a single-use service
- is relatively short lived
- is only a bean class – no interfaces
- bean needs to implements MessageDrivenBean, MessageListener
Example of MDB |
Click here to Download the code
CMP Deployment follow as below
Run Client Application
Recent Comments