| <?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>TimerEjbJar</display-name> | |
| <enterprise-beans> | |
| <entity> | |
| <display-name>BarEJB</display-name> | |
| <ejb-name>BarEJB_CMT</ejb-name> | |
| <home>com.sun.s1asdev.ejb.timer.timertests.BarHome</home> | |
| <remote>com.sun.s1asdev.ejb.timer.timertests.Bar</remote> | |
| <ejb-class>com.sun.s1asdev.ejb.timer.timertests.BarEJB</ejb-class> | |
| <persistence-type>Container</persistence-type> | |
| <prim-key-class>com.sun.s1asdev.ejb.timer.timertests.BarPrimaryKey</prim-key-class> | |
| <reentrant>false</reentrant> | |
| <cmp-version>2.x</cmp-version> | |
| <abstract-schema-name>Bar</abstract-schema-name> | |
| <cmp-field> | |
| <description>no description</description> | |
| <field-name>id</field-name> | |
| </cmp-field> | |
| <cmp-field> | |
| <description>no description</description> | |
| <field-name>value2</field-name> | |
| </cmp-field> | |
| <env-entry> | |
| <env-entry-name>txmode</env-entry-name> | |
| <env-entry-type>java.lang.String</env-entry-type> | |
| <env-entry-value>CMT</env-entry-value> | |
| </env-entry> | |
| <!-- | |
| <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>timertest destination</description> | |
| <message-destination-ref-name>jms/MyQueue</message-destination-ref-name> | |
| <message-destination-type>jakarta.jms.Queue</message-destination-type> | |
| <message-destination-usage>ConsumesProduces</message-destination-usage> | |
| <message-destination-link>TimerQueue</message-destination-link> | |
| </message-destination-ref> | |
| --> | |
| <security-identity> | |
| <description></description> | |
| <use-caller-identity></use-caller-identity> | |
| </security-identity> | |
| </entity> | |
| <!-- | |
| <message-driven> | |
| <ejb-name>msgbean_BMT</ejb-name> | |
| <ejb-class>com.sun.s1asdev.ejb.timer.timertests.MessageDrivenEJB</ejb-class> | |
| <messaging-type>jakarta.jms.MessageListener</messaging-type> | |
| <transaction-type>Bean</transaction-type> | |
| <message-destination-type>jakarta.jms.Queue</message-destination-type> | |
| <message-destination-link>TimerMDBQueue_BMT</message-destination-link> | |
| <env-entry> | |
| <env-entry-name>txmode</env-entry-name> | |
| <env-entry-type>java.lang.String</env-entry-type> | |
| <env-entry-value>BMT</env-entry-value> | |
| </env-entry> | |
| <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>timertest destination</description> | |
| <message-destination-ref-name>jms/MyQueue</message-destination-ref-name> | |
| <message-destination-type>jakarta.jms.Queue</message-destination-type> | |
| <message-destination-usage>ConsumesProduces</message-destination-usage> | |
| <message-destination-link>TimerQueue</message-destination-link> | |
| </message-destination-ref> | |
| </message-driven> | |
| <message-driven> | |
| <ejb-name>msgbean_CMT</ejb-name> | |
| <ejb-class>com.sun.s1asdev.ejb.timer.timertests.MessageDrivenEJB</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>TimerMDBQueue_CMT</message-destination-link> | |
| <env-entry> | |
| <env-entry-name>txmode</env-entry-name> | |
| <env-entry-type>java.lang.String</env-entry-type> | |
| <env-entry-value>CMT</env-entry-value> | |
| </env-entry> | |
| <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>timertest destination</description> | |
| <message-destination-ref-name>jms/MyQueue</message-destination-ref-name> | |
| <message-destination-type>jakarta.jms.Queue</message-destination-type> | |
| <message-destination-usage>ConsumesProduces</message-destination-usage> | |
| <message-destination-link>TimerQueue</message-destination-link> | |
| </message-destination-ref> | |
| </message-driven> | |
| --> | |
| <session> | |
| <ejb-name>FooEJB_UNSPECIFIED_TX</ejb-name> | |
| <home>com.sun.s1asdev.ejb.timer.timertests.FooHome</home> | |
| <remote>com.sun.s1asdev.ejb.timer.timertests.Foo</remote> | |
| <ejb-class>com.sun.s1asdev.ejb.timer.timertests.FooEJB</ejb-class> | |
| <session-type>Stateless</session-type> | |
| <transaction-type>Bean</transaction-type> | |
| <env-entry> | |
| <env-entry-name>txmode</env-entry-name> | |
| <env-entry-type>java.lang.String</env-entry-type> | |
| <env-entry-value>UNSPECIFIED_TX</env-entry-value> | |
| </env-entry> | |
| <!-- | |
| <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>timertest destination</description> | |
| <message-destination-ref-name>jms/MyQueue</message-destination-ref-name> | |
| <message-destination-type>jakarta.jms.Queue</message-destination-type> | |
| <message-destination-usage>ConsumesProduces</message-destination-usage> | |
| <message-destination-link>TimerQueue</message-destination-link> | |
| </message-destination-ref> | |
| --> | |
| <security-identity> | |
| <use-caller-identity/> | |
| </security-identity> | |
| </session> | |
| <session> | |
| <ejb-name>FooEJB_BMT</ejb-name> | |
| <home>com.sun.s1asdev.ejb.timer.timertests.FooHome</home> | |
| <remote>com.sun.s1asdev.ejb.timer.timertests.Foo</remote> | |
| <ejb-class>com.sun.s1asdev.ejb.timer.timertests.FooEJB</ejb-class> | |
| <session-type>Stateless</session-type> | |
| <transaction-type>Bean</transaction-type> | |
| <env-entry> | |
| <env-entry-name>txmode</env-entry-name> | |
| <env-entry-type>java.lang.String</env-entry-type> | |
| <env-entry-value>BMT</env-entry-value> | |
| </env-entry> | |
| <!-- | |
| <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>timertest destination</description> | |
| <message-destination-ref-name>jms/MyQueue</message-destination-ref-name> | |
| <message-destination-type>jakarta.jms.Queue</message-destination-type> | |
| <message-destination-usage>ConsumesProduces</message-destination-usage> | |
| <message-destination-link>TimerQueue</message-destination-link> | |
| </message-destination-ref> | |
| --> | |
| <security-identity> | |
| <use-caller-identity/> | |
| </security-identity> | |
| </session> | |
| <session> | |
| <ejb-name>FooEJB_CMT</ejb-name> | |
| <home>com.sun.s1asdev.ejb.timer.timertests.FooHome</home> | |
| <remote>com.sun.s1asdev.ejb.timer.timertests.Foo</remote> | |
| <ejb-class>com.sun.s1asdev.ejb.timer.timertests.FooEJB</ejb-class> | |
| <session-type>Stateless</session-type> | |
| <transaction-type>Container</transaction-type> | |
| <env-entry> | |
| <env-entry-name>txmode</env-entry-name> | |
| <env-entry-type>java.lang.String</env-entry-type> | |
| <env-entry-value>CMT</env-entry-value> | |
| </env-entry> | |
| <!-- | |
| <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>timertest destination</description> | |
| <message-destination-ref-name>jms/MyQueue</message-destination-ref-name> | |
| <message-destination-type>jakarta.jms.Queue</message-destination-type> | |
| <message-destination-usage>ConsumesProduces</message-destination-usage> | |
| <message-destination-link>TimerQueue</message-destination-link> | |
| </message-destination-ref> | |
| --> | |
| <security-identity> | |
| <use-caller-identity/> | |
| </security-identity> | |
| </session> | |
| <session> | |
| <ejb-name>StatefulEJB_BMT</ejb-name> | |
| <home>com.sun.s1asdev.ejb.timer.timertests.StatefulHome</home> | |
| <remote>com.sun.s1asdev.ejb.timer.timertests.Stateful</remote> | |
| <ejb-class>com.sun.s1asdev.ejb.timer.timertests.StatefulEJB</ejb-class> | |
| <session-type>Stateful</session-type> | |
| <transaction-type>Bean</transaction-type> | |
| <env-entry> | |
| <env-entry-name>txmode</env-entry-name> | |
| <env-entry-type>java.lang.String</env-entry-type> | |
| <env-entry-value>BMT</env-entry-value> | |
| </env-entry> | |
| <!-- | |
| <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>timertest destination</description> | |
| <message-destination-ref-name>jms/MyQueue</message-destination-ref-name> | |
| <message-destination-type>jakarta.jms.Queue</message-destination-type> | |
| <message-destination-usage>ConsumesProduces</message-destination-usage> | |
| <message-destination-link>TimerQueue</message-destination-link> | |
| </message-destination-ref> | |
| --> | |
| <security-identity> | |
| <use-caller-identity/> | |
| </security-identity> | |
| </session> | |
| <session> | |
| <ejb-name>StatefulEJB_CMT</ejb-name> | |
| <home>com.sun.s1asdev.ejb.timer.timertests.StatefulHome</home> | |
| <remote>com.sun.s1asdev.ejb.timer.timertests.Stateful</remote> | |
| <ejb-class>com.sun.s1asdev.ejb.timer.timertests.StatefulEJB</ejb-class> | |
| <session-type>Stateful</session-type> | |
| <transaction-type>Container</transaction-type> | |
| <env-entry> | |
| <env-entry-name>txmode</env-entry-name> | |
| <env-entry-type>java.lang.String</env-entry-type> | |
| <env-entry-value>CMT</env-entry-value> | |
| </env-entry> | |
| <!-- | |
| <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>timertest destination</description> | |
| <message-destination-ref-name>jms/MyQueue</message-destination-ref-name> | |
| <message-destination-type>jakarta.jms.Queue</message-destination-type> | |
| <message-destination-usage>ConsumesProduces</message-destination-usage> | |
| <message-destination-link>TimerQueue</message-destination-link> | |
| </message-destination-ref> | |
| --> | |
| <security-identity> | |
| <use-caller-identity/> | |
| </security-identity> | |
| </session> | |
| </enterprise-beans> | |
| <assembly-descriptor> | |
| <!-- | |
| <container-transaction> | |
| <method> | |
| <ejb-name>msgbean_CMT</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>msgbean_CMT</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> | |
| --> | |
| <container-transaction> | |
| <method> | |
| <ejb-name>FooEJB_CMT</ejb-name> | |
| <method-name>*</method-name> | |
| </method> | |
| <trans-attribute>Required</trans-attribute> | |
| </container-transaction> | |
| <container-transaction> | |
| <method> | |
| <ejb-name>FooEJB_CMT</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> | |
| <container-transaction> | |
| <method> | |
| <ejb-name>FooEJB_CMT</ejb-name> | |
| <method-name>migrateTimersFrom</method-name> | |
| <method-params> | |
| <method-param>java.lang.String</method-param> | |
| </method-params> | |
| </method> | |
| <trans-attribute>NotSupported</trans-attribute> | |
| </container-transaction> | |
| <container-transaction> | |
| <method> | |
| <ejb-name>StatefulEJB_CMT</ejb-name> | |
| <method-name>*</method-name> | |
| </method> | |
| <trans-attribute>Required</trans-attribute> | |
| </container-transaction> | |
| <container-transaction> | |
| <method> | |
| <ejb-name>StatefulEJB_CMT</ejb-name> | |
| <method-name>migrateTimersFrom</method-name> | |
| <method-params> | |
| <method-param>java.lang.String</method-param> | |
| </method-params> | |
| </method> | |
| <trans-attribute>NotSupported</trans-attribute> | |
| </container-transaction> | |
| <container-transaction> | |
| <method> | |
| <ejb-name>BarEJB_CMT</ejb-name> | |
| <method-name>*</method-name> | |
| </method> | |
| <trans-attribute>Required</trans-attribute> | |
| </container-transaction> | |
| <container-transaction> | |
| <method> | |
| <ejb-name>BarEJB_CMT</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>timer app message destination</description> | |
| <display-name>timerqueue</display-name> | |
| <message-destination-name>TimerQueue</message-destination-name> | |
| </message-destination> | |
| <message-destination> | |
| <description>timer app message destination</description> | |
| <display-name>timerqueue</display-name> | |
| <message-destination-name>TimerMDBQueue_CMT</message-destination-name> | |
| </message-destination> | |
| <message-destination> | |
| <description>timer app message destination</description> | |
| <display-name>timerqueue</display-name> | |
| <message-destination-name>TimerMDBQueue_BMT</message-destination-name> | |
| </message-destination> | |
| --> | |
| </assembly-descriptor> | |
| </ejb-jar> |