| <?xml version="1.0" encoding="UTF-8"?> | |
| <!-- | |
| Copyright (c) 2017, 2020 Oracle and/or its affiliates. All rights reserved. | |
| This program and the accompanying materials are made available under the | |
| terms of the Eclipse Public License v. 2.0, which is available at | |
| http://www.eclipse.org/legal/epl-2.0. | |
| This Source Code may also be made available under the following Secondary | |
| Licenses when the conditions for such availability set forth in the | |
| Eclipse Public License v. 2.0 are satisfied: GNU General Public License, | |
| version 2 with the GNU Classpath Exception, which is available at | |
| https://www.gnu.org/software/classpath/license.html. | |
| SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 | |
| --> | |
| <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"> | |
| <display-name>Ejb1</display-name> | |
| <enterprise-beans> | |
| <message-driven> | |
| <display-name>MDB1</display-name> | |
| <ejb-name>MDB1</ejb-name> | |
| <ejb-class>com.sun.s1asdev.ejb.timer.mdbtimer.MessageBean</ejb-class> | |
| <messaging-type>jakarta.jms.MessageListener</messaging-type> | |
| <transaction-type>Container</transaction-type> | |
| <message-destination-type>jakarta.jms.Queue</message-destination-type> | |
| <message-destination-link>MsgBeanInQueue</message-destination-link> | |
| <resource-ref> | |
| <description>description</description> | |
| <res-ref-name>jms/MyQueueConnectionFactory</res-ref-name> | |
| <res-type>jakarta.jms.QueueConnectionFactory</res-type> | |
| <res-auth>Container</res-auth> | |
| <res-sharing-scope>Shareable</res-sharing-scope> | |
| </resource-ref> | |
| <message-destination-ref> | |
| <description>test destination</description> | |
| <message-destination-ref-name>jms/MyQueue | |
| </message-destination-ref-name> | |
| <message-destination-type>jakarta.jms.Queue</message-destination-type> | |
| <message-destination-usage>Produces</message-destination-usage> | |
| <message-destination-link>MsgBeanOutQueue</message-destination-link> | |
| </message-destination-ref> | |
| </message-driven> | |
| </enterprise-beans> | |
| <assembly-descriptor> | |
| <container-transaction> | |
| <method> | |
| <ejb-name>MDB1</ejb-name> | |
| <method-name>onMessage</method-name> | |
| <method-params> | |
| <method-param>jakarta.jms.Message</method-param> | |
| </method-params> | |
| </method> | |
| <trans-attribute>Required</trans-attribute> | |
| </container-transaction> | |
| <container-transaction> | |
| <method> | |
| <ejb-name>MDB1</ejb-name> | |
| <method-name>ejbTimeout</method-name> | |
| <method-params> | |
| <method-param>jakarta.ejb.Timer</method-param> | |
| </method-params> | |
| </method> | |
| <trans-attribute>RequiresNew</trans-attribute> | |
| </container-transaction> | |
| <message-destination> | |
| <description>description 1</description> | |
| <display-name>msg destination display name</display-name> | |
| <message-destination-name>MsgBeanInQueue</message-destination-name> | |
| </message-destination> | |
| <message-destination> | |
| <description>description 1</description> | |
| <display-name>msg destination display name</display-name> | |
| <message-destination-name>MsgBeanOutQueue</message-destination-name> | |
| </message-destination> | |
| </assembly-descriptor> | |
| </ejb-jar> | |