Vinay Vishal | 5717147 | 2018-09-18 20:22:00 +0530 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd"> |
| 3 | <!-- |
| 4 | |
Gaurav Gupta | 3655507 | 2020-03-26 14:10:23 +0530 | [diff] [blame^] | 5 | Copyright (c) 2017, 2020 Oracle and/or its affiliates. All rights reserved. |
Vinay Vishal | 5717147 | 2018-09-18 20:22:00 +0530 | [diff] [blame] | 6 | |
| 7 | This program and the accompanying materials are made available under the |
| 8 | terms of the Eclipse Public License v. 2.0, which is available at |
| 9 | http://www.eclipse.org/legal/epl-2.0. |
| 10 | |
| 11 | This Source Code may also be made available under the following Secondary |
| 12 | Licenses when the conditions for such availability set forth in the |
| 13 | Eclipse Public License v. 2.0 are satisfied: GNU General Public License, |
| 14 | version 2 with the GNU Classpath Exception, which is available at |
| 15 | https://www.gnu.org/software/classpath/license.html. |
| 16 | |
| 17 | SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 |
| 18 | |
| 19 | --> |
| 20 | |
| 21 | <ejb-jar> |
| 22 | <display-name>Ejb1</display-name> |
| 23 | <enterprise-beans> |
| 24 | <session> |
| 25 | <display-name>HelloBeanBMT</display-name> |
| 26 | <ejb-name>HelloBeanBMT</ejb-name> |
| 27 | <home>com.sun.s1asdev.ejb.jms.jmsejb.HelloHome</home> |
| 28 | <remote>com.sun.s1asdev.ejb.jms.jmsejb.Hello</remote> |
| 29 | <ejb-class>com.sun.s1asdev.ejb.jms.jmsejb.HelloBean</ejb-class> |
| 30 | <session-type>Stateful</session-type> |
| 31 | <transaction-type>Bean</transaction-type> |
| 32 | <env-entry> |
| 33 | <env-entry-name>user</env-entry-name> |
| 34 | <env-entry-type>java.lang.String</env-entry-type> |
| 35 | <env-entry-value>scott</env-entry-value> |
| 36 | </env-entry> |
| 37 | <env-entry> |
| 38 | <env-entry-name>password</env-entry-name> |
| 39 | <env-entry-type>java.lang.String</env-entry-type> |
| 40 | <env-entry-value>theboss</env-entry-value> |
| 41 | </env-entry> |
| 42 | <env-entry> |
| 43 | <env-entry-name>number</env-entry-name> |
| 44 | <env-entry-type>java.lang.Double</env-entry-type> |
| 45 | <env-entry-value>22.25</env-entry-value> |
| 46 | </env-entry> |
| 47 | <env-entry> |
| 48 | <env-entry-name>beanManagedTx</env-entry-name> |
| 49 | <env-entry-type>java.lang.Boolean</env-entry-type> |
| 50 | <env-entry-value>true</env-entry-value> |
| 51 | </env-entry> |
| 52 | <security-identity> |
| 53 | <use-caller-identity/> |
| 54 | </security-identity> |
| 55 | <resource-ref> |
| 56 | <description>description</description> |
| 57 | <res-ref-name>jms/MyQueueConnectionFactory</res-ref-name> |
Gaurav Gupta | 3655507 | 2020-03-26 14:10:23 +0530 | [diff] [blame^] | 58 | <res-type>jakarta.jms.QueueConnectionFactory</res-type> |
Vinay Vishal | 5717147 | 2018-09-18 20:22:00 +0530 | [diff] [blame] | 59 | <res-auth>Bean</res-auth> |
| 60 | <res-sharing-scope>Shareable</res-sharing-scope> |
| 61 | </resource-ref> |
| 62 | <resource-env-ref> |
| 63 | <resource-env-ref-name>jms/QueueName</resource-env-ref-name> |
Gaurav Gupta | 3655507 | 2020-03-26 14:10:23 +0530 | [diff] [blame^] | 64 | <resource-env-ref-type>jakarta.jms.Queue</resource-env-ref-type> |
Vinay Vishal | 5717147 | 2018-09-18 20:22:00 +0530 | [diff] [blame] | 65 | </resource-env-ref> |
| 66 | </session> |
| 67 | <session> |
| 68 | <display-name>HelloBeanCMT</display-name> |
| 69 | <ejb-name>HelloBeanCMT</ejb-name> |
| 70 | <home>com.sun.s1asdev.ejb.jms.jmsejb.HelloHome</home> |
| 71 | <remote>com.sun.s1asdev.ejb.jms.jmsejb.Hello</remote> |
| 72 | <ejb-class>com.sun.s1asdev.ejb.jms.jmsejb.HelloBean</ejb-class> |
| 73 | <session-type>Stateful</session-type> |
| 74 | <transaction-type>Container</transaction-type> |
| 75 | <env-entry> |
| 76 | <env-entry-name>user</env-entry-name> |
| 77 | <env-entry-type>java.lang.String</env-entry-type> |
| 78 | <env-entry-value>scott</env-entry-value> |
| 79 | </env-entry> |
| 80 | <env-entry> |
| 81 | <env-entry-name>password</env-entry-name> |
| 82 | <env-entry-type>java.lang.String</env-entry-type> |
| 83 | <env-entry-value>theboss</env-entry-value> |
| 84 | </env-entry> |
| 85 | <env-entry> |
| 86 | <env-entry-name>number</env-entry-name> |
| 87 | <env-entry-type>java.lang.Double</env-entry-type> |
| 88 | <env-entry-value>22.25</env-entry-value> |
| 89 | </env-entry> |
| 90 | <env-entry> |
| 91 | <env-entry-name>beanManagedTx</env-entry-name> |
| 92 | <env-entry-type>java.lang.Boolean</env-entry-type> |
| 93 | <env-entry-value>false</env-entry-value> |
| 94 | </env-entry> |
| 95 | <security-identity> |
| 96 | <use-caller-identity/> |
| 97 | </security-identity> |
| 98 | <resource-ref> |
| 99 | <description>description</description> |
| 100 | <res-ref-name>jms/MyQueueConnectionFactory</res-ref-name> |
Gaurav Gupta | 3655507 | 2020-03-26 14:10:23 +0530 | [diff] [blame^] | 101 | <res-type>jakarta.jms.QueueConnectionFactory</res-type> |
Vinay Vishal | 5717147 | 2018-09-18 20:22:00 +0530 | [diff] [blame] | 102 | <res-auth>Bean</res-auth> |
| 103 | <res-sharing-scope>Shareable</res-sharing-scope> |
| 104 | </resource-ref> |
| 105 | <resource-env-ref> |
| 106 | <resource-env-ref-name>jms/QueueName</resource-env-ref-name> |
Gaurav Gupta | 3655507 | 2020-03-26 14:10:23 +0530 | [diff] [blame^] | 107 | <resource-env-ref-type>jakarta.jms.Queue</resource-env-ref-type> |
Vinay Vishal | 5717147 | 2018-09-18 20:22:00 +0530 | [diff] [blame] | 108 | </resource-env-ref> |
| 109 | </session> |
| 110 | </enterprise-beans> |
| 111 | <assembly-descriptor> |
| 112 | <container-transaction> |
| 113 | <method> |
| 114 | <ejb-name>HelloBeanCMT</ejb-name> |
| 115 | <method-intf>Remote</method-intf> |
| 116 | <method-name>receiveMessage2</method-name> |
| 117 | </method> |
| 118 | <trans-attribute>Required</trans-attribute> |
| 119 | </container-transaction> |
| 120 | <container-transaction> |
| 121 | <method> |
| 122 | <ejb-name>HelloBeanCMT</ejb-name> |
| 123 | <method-intf>Remote</method-intf> |
| 124 | <method-name>sendAndReceiveMessage</method-name> |
| 125 | </method> |
| 126 | <trans-attribute>Required</trans-attribute> |
| 127 | </container-transaction> |
| 128 | <container-transaction> |
| 129 | <method> |
| 130 | <ejb-name>HelloBeanCMT</ejb-name> |
| 131 | <method-intf>Remote</method-intf> |
| 132 | <method-name>receiveMessage1</method-name> |
| 133 | </method> |
| 134 | <trans-attribute>Required</trans-attribute> |
| 135 | </container-transaction> |
| 136 | <container-transaction> |
| 137 | <method> |
| 138 | <ejb-name>HelloBeanCMT</ejb-name> |
| 139 | <method-intf>Remote</method-intf> |
| 140 | <method-name>sendMessageRollback</method-name> |
| 141 | <method-params> |
| 142 | <method-param>java.lang.String</method-param> |
| 143 | </method-params> |
| 144 | </method> |
| 145 | <trans-attribute>Required</trans-attribute> |
| 146 | </container-transaction> |
| 147 | <container-transaction> |
| 148 | <method> |
| 149 | <ejb-name>HelloBeanCMT</ejb-name> |
| 150 | <method-intf>Remote</method-intf> |
| 151 | <method-name>receiveMessage4Part2</method-name> |
| 152 | </method> |
| 153 | <trans-attribute>Required</trans-attribute> |
| 154 | </container-transaction> |
| 155 | <container-transaction> |
| 156 | <method> |
| 157 | <ejb-name>HelloBeanCMT</ejb-name> |
| 158 | <method-intf>Remote</method-intf> |
| 159 | <method-name>sendAndReceiveRollback</method-name> |
| 160 | </method> |
| 161 | <trans-attribute>Required</trans-attribute> |
| 162 | </container-transaction> |
| 163 | <container-transaction> |
| 164 | <method> |
| 165 | <ejb-name>HelloBeanCMT</ejb-name> |
| 166 | <method-intf>Remote</method-intf> |
| 167 | <method-name>receiveMessage4Part1</method-name> |
| 168 | </method> |
| 169 | <trans-attribute>Required</trans-attribute> |
| 170 | </container-transaction> |
| 171 | <container-transaction> |
| 172 | <method> |
| 173 | <ejb-name>HelloBeanCMT</ejb-name> |
| 174 | <method-intf>Remote</method-intf> |
| 175 | <method-name>receiveMessageRollback</method-name> |
| 176 | </method> |
| 177 | <trans-attribute>Required</trans-attribute> |
| 178 | </container-transaction> |
| 179 | <container-transaction> |
| 180 | <method> |
| 181 | <ejb-name>HelloBeanCMT</ejb-name> |
| 182 | <method-intf>Remote</method-intf> |
| 183 | <method-name>sendMessage3</method-name> |
| 184 | <method-params> |
| 185 | <method-param>java.lang.String</method-param> |
| 186 | </method-params> |
| 187 | </method> |
| 188 | <trans-attribute>Required</trans-attribute> |
| 189 | </container-transaction> |
| 190 | <container-transaction> |
| 191 | <method> |
| 192 | <ejb-name>HelloBeanCMT</ejb-name> |
| 193 | <method-intf>Remote</method-intf> |
| 194 | <method-name>sendMessage2</method-name> |
| 195 | <method-params> |
| 196 | <method-param>java.lang.String</method-param> |
| 197 | </method-params> |
| 198 | </method> |
| 199 | <trans-attribute>Required</trans-attribute> |
| 200 | </container-transaction> |
| 201 | <container-transaction> |
| 202 | <method> |
| 203 | <ejb-name>HelloBeanCMT</ejb-name> |
| 204 | <method-intf>Remote</method-intf> |
| 205 | <method-name>sendMessage4Part2</method-name> |
| 206 | <method-params> |
| 207 | <method-param>java.lang.String</method-param> |
| 208 | </method-params> |
| 209 | </method> |
| 210 | <trans-attribute>Required</trans-attribute> |
| 211 | </container-transaction> |
| 212 | <container-transaction> |
| 213 | <method> |
| 214 | <ejb-name>HelloBeanCMT</ejb-name> |
| 215 | <method-intf>Remote</method-intf> |
| 216 | <method-name>sendMessage1</method-name> |
| 217 | <method-params> |
| 218 | <method-param>java.lang.String</method-param> |
| 219 | </method-params> |
| 220 | </method> |
| 221 | <trans-attribute>Required</trans-attribute> |
| 222 | </container-transaction> |
| 223 | <container-transaction> |
| 224 | <method> |
| 225 | <ejb-name>HelloBeanCMT</ejb-name> |
| 226 | <method-intf>Remote</method-intf> |
| 227 | <method-name>sendMessage4Part1</method-name> |
| 228 | <method-params> |
| 229 | <method-param>java.lang.String</method-param> |
| 230 | </method-params> |
| 231 | </method> |
| 232 | <trans-attribute>Required</trans-attribute> |
| 233 | </container-transaction> |
| 234 | <container-transaction> |
| 235 | <method> |
| 236 | <ejb-name>HelloBeanCMT</ejb-name> |
| 237 | <method-intf>Remote</method-intf> |
| 238 | <method-name>receiveMessage3</method-name> |
| 239 | </method> |
| 240 | <trans-attribute>Required</trans-attribute> |
| 241 | </container-transaction> |
| 242 | </assembly-descriptor> |
| 243 | </ejb-jar> |