| <?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>TimerSessionEjbJar</display-name> |
| <enterprise-beans> |
| <session> |
| <ejb-name>TimerSessionEJB</ejb-name> |
| <home>com.sun.s1asdev.ejb.timer.sessiontimersecurity.TimerSessionHome</home> |
| <remote>com.sun.s1asdev.ejb.timer.sessiontimersecurity.TimerSession</remote> |
| <ejb-class>com.sun.s1asdev.ejb.timer.sessiontimersecurity.TimerSessionEJB</ejb-class> |
| <session-type>Stateless</session-type> |
| <transaction-type>Container</transaction-type> |
| <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> |
| <resource-env-ref> |
| <resource-env-ref-name>jms/MyQueue</resource-env-ref-name> |
| <resource-env-ref-type>jakarta.jms.Queue</resource-env-ref-type> |
| </resource-env-ref> |
| <security-role-ref> |
| <role-name>foo</role-name> |
| <role-link>roleName</role-link> |
| </security-role-ref> |
| <security-identity> |
| <use-caller-identity/> |
| </security-identity> |
| </session> |
| </enterprise-beans> |
| <assembly-descriptor> |
| <security-role> |
| <role-name>roleName</role-name> |
| </security-role> |
| <method-permission> |
| <role-name>roleName</role-name> |
| <method> |
| <ejb-name>TimerSessionEJB</ejb-name> |
| <method-name>ejbTimeout</method-name> |
| <method-params> |
| <method-param>javax.ejb.Timer</method-param> |
| </method-params> |
| </method> |
| </method-permission> |
| <container-transaction> |
| <method> |
| <ejb-name>TimerSessionEJB</ejb-name> |
| <method-name>*</method-name> |
| </method> |
| <trans-attribute>Required</trans-attribute> |
| </container-transaction> |
| <container-transaction> |
| <method> |
| <ejb-name>TimerSessionEJB</ejb-name> |
| <method-name>ejbTimeout</method-name> |
| <method-params> |
| <method-param>javax.ejb.Timer</method-param> |
| </method-params> |
| </method> |
| <trans-attribute>RequiresNew</trans-attribute> |
| </container-transaction> |
| </assembly-descriptor> |
| </ejb-jar> |