Deploying a Message-Driven Bean
Because we are not specifying the JMS objects that the message-driven bean connects to in the class itself, it must be somewhere. That somewhere is in the deployment descriptor for the bean. This is referred to as specifying the connection information declaratively. If we specified the connection information inside the source code, we would say that it’s programmatic. This is another nice feature because we can change the JMS destination during deployment and not have to modify the source code.
An Example Message-Driven Bean Deployment Descriptor
To deploy your message-driven bean, you must add a message-driven element to the ejb-xml.jar file. The main things that are specified for a message-driven bean are
Get Special Edition Using Enterprise JavaBeans™ 2.0 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.