Java Reference
In-Depth Information
Figure 5-4. Sequence diagram: Spring MDB execution
Listing 5-21 shows the deployment descriptor for the MDB.
Listing 5-21. ejb-jar.xml
<?xml version="1.0" encoding="UTF-8"?>
<ejb-jar version="2.1" xmlns=" http://java.sun.com/xml/ns/j2ee"
xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=" http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd" >
<enterprise-beans>
<message-driven>
<display-name>ReportingMDB</display-name>
<ejb-name>ReportingMDB</ejb-name>
<ejb-class>com.apress.einsure.reports.aysync.activator.ReportingMDB
</ejb-class>
<transaction-type>Container</transaction-type>
<env-entry>
<env-entry-name>ejb/BeanFactoryPath</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>com/apress/einsure/reports/aysync/activator å
/Reporting-beans.xml</env-entry-value>
</env-entry>
<message-destination-type>javax.jms.Queue</message-destination-type>
<message-destination-link>reportQ</message-destination-link>
<activation-config>
<activation-config-property>
<activation-config-property-name>
Search WWH ::




Custom Search