blob: dc8ff30b22b0f72a9588f23b7cc0a0ca585a791b [file] [log] [blame]
<?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 xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="3.0" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd">
<display-name>NonPTimerEjbJar</display-name>
<enterprise-beans>
<!--
<message-driven>
<ejb-name>msgbean_BMT</ejb-name>
<ejb-class>com.sun.s1asdev.ejb31.timer.nonpersistenttimer.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.ejb31.timer.nonpersistenttimer.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>
<local-home>com.sun.s1asdev.ejb31.timer.nonpersistenttimer.FooHome</local-home>
<local>com.sun.s1asdev.ejb31.timer.nonpersistenttimer.Foo</local>
<ejb-class>com.sun.s1asdev.ejb31.timer.nonpersistenttimer.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>
<local-home>com.sun.s1asdev.ejb31.timer.nonpersistenttimer.FooHome</local-home>
<local>com.sun.s1asdev.ejb31.timer.nonpersistenttimer.Foo</local>
<ejb-class>com.sun.s1asdev.ejb31.timer.nonpersistenttimer.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>
<local-home>com.sun.s1asdev.ejb31.timer.nonpersistenttimer.FooHome</local-home>
<local>com.sun.s1asdev.ejb31.timer.nonpersistenttimer.Foo</local>
<ejb-class>com.sun.s1asdev.ejb31.timer.nonpersistenttimer.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>StatefulWrapperEJB</ejb-name>
<business-remote>com.sun.s1asdev.ejb31.timer.nonpersistenttimer.StatefulWrapper</business-remote>
<ejb-class>com.sun.s1asdev.ejb31.timer.nonpersistenttimer.StatefulWrapperImpl</ejb-class>
<session-type>Stateful</session-type>
<transaction-type>Bean</transaction-type>
<ejb-local-ref>
<ejb-ref-name>ejbs/Foo_UNSPECIFIED_TX</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local-home>com.sun.s1asdev.ejb31.timer.nonpersistenttimer.FooHome</local-home>
<local>com.sun.s1asdev.ejb31.timer.nonpersistenttimer.Foo</local>
<ejb-link>FooEJB_UNSPECIFIED_TX</ejb-link>
</ejb-local-ref>
<ejb-local-ref>
<ejb-ref-name>ejbs/Foo_BMT</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local-home>com.sun.s1asdev.ejb31.timer.nonpersistenttimer.FooHome</local-home>
<local>com.sun.s1asdev.ejb31.timer.nonpersistenttimer.Foo</local>
<ejb-link>FooEJB_BMT</ejb-link>
</ejb-local-ref>
<ejb-local-ref>
<ejb-ref-name>ejbs/Foo_CMT</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local-home>com.sun.s1asdev.ejb31.timer.nonpersistenttimer.FooHome</local-home>
<local>com.sun.s1asdev.ejb31.timer.nonpersistenttimer.Foo</local>
<ejb-link>FooEJB_CMT</ejb-link>
</ejb-local-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>
<!--
<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>