blob: bc14a8817c2f48c2f00602e8a6a70a7e403385e8 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2017, 2018 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.1" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_1.xsd">
<module-name>ejbmodulename</module-name>
<description>EJB 3.1 schema test</description>
<enterprise-beans>
<session>
<ejb-name>SingletonBean</ejb-name>
<local-bean/>
<ejb-class>com.acme.SingletonBean</ejb-class>
<session-type>Singleton</session-type>
<timer>
<description>Sample timer</description>
<schedule>
<second>1</second>
<minute>*</minute>
<hour>*/2</hour>
<day-of-month>Last Tue</day-of-month>
<month>Feb</month>
<year>2010</year>
</schedule>
<start>2002-10-10T12:00:00</start>
<end>2002-10-10T12:00:00</end>
<timeout-method>
<method-name>mytimeout2</method-name>
</timeout-method>
<persistent>false</persistent>
<timezone>America/New_York</timezone>
<info>some info</info>
</timer>
<timer>
<description>Sample timer1</description>
<schedule>
<second>*/2</second>
<minute>*</minute>
<hour>*</hour>
</schedule>
<timeout-method>
<method-name>mytimeout1</method-name>
</timeout-method>
<persistent>false</persistent>
<timezone>America/New_York</timezone>
<info>some info</info>
</timer>
<timer>
<description>Sample timer2</description>
<schedule>
<second>*/7</second>
<minute>*</minute>
<hour>*</hour>
<day-of-month>*</day-of-month>
</schedule>
<timeout-method>
<method-name>mytimeout</method-name>
<method-params>
<method-param>jakarta.ejb.Timer</method-param>
</method-params>
</timeout-method>
<persistent>true</persistent>
<info>info</info>
</timer>
<init-on-startup>true</init-on-startup>
<concurrency-management-type>Bean</concurrency-management-type>
<concurrent-method>
<method>
<method-name>foo</method-name>
</method>
<lock>Write</lock>
<access-timeout>
<timeout>19876</timeout>
<unit>Seconds</unit>
</access-timeout>
</concurrent-method>
<depends-on>
<ejb-name>SingletonBean2</ejb-name>
</depends-on>
<async-method>
<method-name>foo</method-name>
</async-method>
<ejb-ref>
<ejb-ref-name>ejb/lookup1</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<remote>com.acme.RemoteSingleton</remote>
<lookup-name>java:module/SingletonBean!com.acme.RemoteSingleton</lookup-name>
</ejb-ref>
<ejb-local-ref>
<ejb-ref-name>ejb/lookup2</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local>com.acme.SingletonBean2</local>
<lookup-name>java:module/SingletonBean2</lookup-name>
</ejb-local-ref>
</session>
<session>
<ejb-name>SingletonBean2</ejb-name>
<local-bean/>
<ejb-class>com.acme.SingletonBean2</ejb-class>
<session-type>Singleton</session-type>
<timer>
<description>Sample timer</description>
<schedule>
<minute>*</minute>
</schedule>
<timeout-method>
<method-name>myTimeout</method-name>
</timeout-method>
</timer>
<concurrent-method>
<method>
<method-name>foo</method-name>
</method>
<lock>Write</lock>
<access-timeout>
<timeout>5</timeout>
<unit>Seconds</unit>
</access-timeout>
</concurrent-method>
<concurrent-method>
<method>
<method-name>foo2</method-name>
</method>
<lock>Read</lock>
</concurrent-method>
<concurrent-method>
<method>
<method-name>fooAsync</method-name>
<method-params>
<method-param>int</method-param>
</method-params>
</method>
<lock>Read</lock>
</concurrent-method>
<async-method>
<method-name>fooAsync</method-name>
<method-params>
<method-param>int</method-param>
</method-params>
</async-method>
<transaction-type>Container</transaction-type>
<post-construct>
<lifecycle-callback-class>com.acme.SingletonBean2</lifecycle-callback-class>
<lifecycle-callback-method>init</lifecycle-callback-method>
</post-construct>
<pre-destroy>
<lifecycle-callback-class>com.acme.SingletonBean2</lifecycle-callback-class>
<lifecycle-callback-method>destroy</lifecycle-callback-method>
</pre-destroy>
</session>
<session>
<ejb-name>StatelessBean</ejb-name>
<async-method>
<method-name>foo</method-name>
</async-method>
</session>
<session>
<ejb-name>MultiBean</ejb-name>
<env-entry>
<env-entry-name>multi</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>1</env-entry-value>
</env-entry>
</session>
<session>
<ejb-name>MultiBean2</ejb-name>
<local-bean/>
<ejb-class>com.acme.MultiBean</ejb-class>
<session-type>Singleton</session-type>
<env-entry>
<env-entry-name>multi</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>2</env-entry-value>
</env-entry>
</session>
<session>
<ejb-name>MultiBean3</ejb-name>
<local-bean/>
<ejb-class>com.acme.MultiBean</ejb-class>
<session-type>Singleton</session-type>
<env-entry>
<env-entry-name>multi</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>3</env-entry-value>
</env-entry>
</session>
<session>
<ejb-name>StatefulBean</ejb-name>
<local-bean/>
<ejb-class>com.acme.StatefulBean</ejb-class>
<session-type>Stateful</session-type>
<stateful-timeout>
<timeout>1001</timeout>
<unit>Minutes</unit>
</stateful-timeout>
<concurrency-management-type>Container</concurrency-management-type>
<async-method>
<method-name>foo</method-name>
</async-method>
<after-begin-method>
<method-name>afterBegin</method-name>
</after-begin-method>
<before-completion-method>
<method-name>beforeCompletion</method-name>
</before-completion-method>
<after-completion-method>
<method-name>afterCompletion</method-name>
<method-params>
<method-param>boolean</method-param>
</method-params>
</after-completion-method>
</session>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>SingletonBean2</ejb-name>
<method-name>init</method-name>
<method-params/>
</method>
<trans-attribute>NotSupported</trans-attribute>
</container-transaction>
<container-transaction>
<method>
<ejb-name>SingletonBean2</ejb-name>
<method-name>destroy</method-name>
<method-params/>
</method>
<trans-attribute>NotSupported</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>