blob: 86df82d363333aa13fdaa9757261b1cbf6ddd3d0 [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 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>MDB_QUEUE_BMT</display-name>
<ejb-name>MDB_QUEUE_BMT</ejb-name>
<ejb-class>com.sun.s1asdev.ejb.mdb.msgbean.MsgBean</ejb-class>
<messaging-type>jakarta.jms.MessageListener</messaging-type>
<transaction-type>Bean</transaction-type>
<message-destination-type>jakarta.jms.Queue</message-destination-type>
<env-entry>
<env-entry-name>beanManagedTx</env-entry-name>
<env-entry-type>java.lang.Boolean</env-entry-type>
<env-entry-value>true</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>
<resource-ref>
<description>description</description>
<res-ref-name>jms/MyTopicConnectionFactory</res-ref-name>
<res-type>jakarta.jms.TopicConnectionFactory</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
<resource-ref>
<description>description</description>
<res-ref-name>jdbc/AccountDB</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
<security-identity>
<use-caller-identity></use-caller-identity>
</security-identity>
</message-driven>
<message-driven>
<display-name>MDB_QUEUE_CMT</display-name>
<ejb-name>MDB_QUEUE_CMT</ejb-name>
<ejb-class>com.sun.s1asdev.ejb.mdb.msgbean.MsgBean</ejb-class>
<messaging-type>jakarta.jms.MessageListener</messaging-type>
<transaction-type>Container</transaction-type>
<message-destination-type>jakarta.jms.Queue</message-destination-type>
<env-entry>
<env-entry-name>beanManagedTx</env-entry-name>
<env-entry-type>java.lang.Boolean</env-entry-type>
<env-entry-value>false</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>
<resource-ref>
<description>description</description>
<res-ref-name>jms/MyTopicConnectionFactory</res-ref-name>
<res-type>jakarta.jms.TopicConnectionFactory</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
<resource-ref>
<description>description</description>
<res-ref-name>jdbc/AccountDB</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
</message-driven>
<message-driven>
<display-name>operationtestqueue</display-name>
<ejb-name>operationtestqueue</ejb-name>
<ejb-class>com.sun.s1asdev.ejb.mdb.msgbean.OperationTestMsgBean</ejb-class>
<messaging-type>jakarta.jms.MessageListener</messaging-type>
<transaction-type>Bean</transaction-type>
<message-destination-type>jakarta.jms.Queue</message-destination-type>
<env-entry>
<env-entry-name>beanManagedTx</env-entry-name>
<env-entry-type>java.lang.Boolean</env-entry-type>
<env-entry-value>true</env-entry-value>
</env-entry>
<env-entry>
<env-entry-name>EnvVar</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>whatever</env-entry-value>
</env-entry>
</message-driven>
<message-driven>
<display-name>operationtesttopic</display-name>
<ejb-name>operationtesttopic</ejb-name>
<ejb-class>com.sun.s1asdev.ejb.mdb.msgbean.OperationTestMsgBean</ejb-class>
<messaging-type>jakarta.jms.MessageListener</messaging-type>
<transaction-type>Bean</transaction-type>
<message-destination-type>jakarta.jms.Topic</message-destination-type>
<env-entry>
<env-entry-name>beanManagedTx</env-entry-name>
<env-entry-type>java.lang.Boolean</env-entry-type>
<env-entry-value>true</env-entry-value>
</env-entry>
<env-entry>
<env-entry-name>EnvVar</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>whatever</env-entry-value>
</env-entry>
</message-driven>
<message-driven>
<display-name>MDB_TOPIC_CMT</display-name>
<ejb-name>MDB_TOPIC_CMT</ejb-name>
<ejb-class>com.sun.s1asdev.ejb.mdb.msgbean.MsgBean</ejb-class>
<messaging-type>jakarta.jms.MessageListener</messaging-type>
<transaction-type>Container</transaction-type>
<message-destination-type>jakarta.jms.Topic</message-destination-type>
<env-entry>
<env-entry-name>beanManagedTx</env-entry-name>
<env-entry-type>java.lang.Boolean</env-entry-type>
<env-entry-value>false</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>
<resource-ref>
<description>description</description>
<res-ref-name>jms/MyTopicConnectionFactory</res-ref-name>
<res-type>jakarta.jms.TopicConnectionFactory</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
<resource-ref>
<description>description</description>
<res-ref-name>jdbc/AccountDB</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
</message-driven>
<message-driven>
<display-name>MDB_QUEUE_CMTNS</display-name>
<ejb-name>MDB_QUEUE_CMTNS</ejb-name>
<ejb-class>com.sun.s1asdev.ejb.mdb.msgbean.MsgBean</ejb-class>
<messaging-type>jakarta.jms.MessageListener</messaging-type>
<transaction-type>Container</transaction-type>
<message-destination-type>jakarta.jms.Queue</message-destination-type>
<env-entry>
<env-entry-name>beanManagedTx</env-entry-name>
<env-entry-type>java.lang.Boolean</env-entry-type>
<env-entry-value>false</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>
<resource-ref>
<description>description</description>
<res-ref-name>jms/MyTopicConnectionFactory</res-ref-name>
<res-type>jakarta.jms.TopicConnectionFactory</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
<resource-ref>
<description>description</description>
<res-ref-name>jdbc/AccountDB</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
</message-driven>
<message-driven>
<display-name>MDB_TOPIC_BMT</display-name>
<ejb-name>MDB_TOPIC_BMT</ejb-name>
<ejb-class>com.sun.s1asdev.ejb.mdb.msgbean.MsgBean</ejb-class>
<messaging-type>jakarta.jms.MessageListener</messaging-type>
<transaction-type>Bean</transaction-type>
<message-destination-type>jakarta.jms.Topic</message-destination-type>
<env-entry>
<env-entry-name>beanManagedTx</env-entry-name>
<env-entry-type>java.lang.Boolean</env-entry-type>
<env-entry-value>true</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>
<resource-ref>
<description>description</description>
<res-ref-name>jms/MyTopicConnectionFactory</res-ref-name>
<res-type>jakarta.jms.TopicConnectionFactory</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
<resource-ref>
<description>description</description>
<res-ref-name>jdbc/AccountDB</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
</message-driven>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>MDB_QUEUE_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>MDB_TOPIC_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>MDB_QUEUE_CMTNS</ejb-name>
<method-name>onMessage</method-name>
<method-params>
<method-param>jakarta.jms.Message</method-param>
</method-params>
</method>
<trans-attribute>NotSupported</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>