Friday, March 13, 2009

What are the enhancements in EJB 2.0 specification with respect to

Question :What are the enhancements in EJB 2.0 specification with respect to
Asynchronous communication? (EJB)
Answer :EJB 2.0 mandates integration between JMS and EJB.
We have specified the integration of Enterprise JavaBeans with the Java
Message Service, and have introduced message-driven beans. A messagedriven
bean is a stateless component that is invoked by the container as a
result of the arrival of a JMS message. The goal of the message-driven
bean model is to make developing an enterprise bean that is
asynchronously invoked to handle the processing of incoming JMS
messages as simple as developing the same functionality in any other JMS
MessageListener.

No comments: