Summary

Message-Driven beans make JMS programming much easier. The container provides many infrastructural services so that application developers can focus on the business logic of the asynchronous processing. Asynchronous processing can at times be very useful or even indispensable.

Message-Driven beans are in many ways similar to Stateless Session beans. But unlike Session beans and Entity beans, MDBs are never invoked directly by clients; therefore, they don't need home interfaces and remote objects. For developers, this means that there needs just one source file for a bean, plus appropriate deployment descriptors. The majority of Message-Driven bean development is done in the onMessage() method of the javax.jms.MessageListener interface, ...

Get BEA WebLogic Server™ 8.1 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.