O'Reilly logo

J2EE™ Applications and BEA™ WebLogic Server™ by Sandra L. Emerson, Rob Woollen, Michael Girdley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Message-Driven EJB Advantages

Message-Driven EJBs provide a number of advantages over standard JMS consumers, and they should be the default choice when writing message consumers.

Using JTA Transactions with an Asynchronous Consumer

The WebLogic JMS implementation provides a powerful integration with the JTA transaction manager. This allows JMS message producers and consumers to participate in JTA transactions and enlist other resources such as EJBs or JDBC code in these transactions.

A standard JMS consumer enlists a JTA transaction by explicitly using a UserTransaction reference to begin and commit transactions. The message consumer can begin a UserTransaction and then call its receive method to consume a JMS message within that transaction. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required