geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r497146 [3/5] - in /geronimo/server/trunk: ./ assemblies/geronimo-jetty6-jee5/ assemblies/geronimo-jetty6-jee5/src/main/var/config/ assemblies/geronimo-tomcat6-jee5/ assemblies/geronimo-tomcat6-jee5/src/main/var/config/ configs/ configs/jee...
Date Wed, 17 Jan 2007 20:03:29 GMT
Added: geronimo/server/trunk/modules/geronimo-openejb-builder/src/test/resources/j2ee_1_2dtd/ejb-1-21.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-openejb-builder/src/test/resources/j2ee_1_2dtd/ejb-1-21.xml?view=auto&rev=497146
==============================================================================
--- geronimo/server/trunk/modules/geronimo-openejb-builder/src/test/resources/j2ee_1_2dtd/ejb-1-21.xml (added)
+++ geronimo/server/trunk/modules/geronimo-openejb-builder/src/test/resources/j2ee_1_2dtd/ejb-1-21.xml Wed Jan 17 12:03:23 2007
@@ -0,0 +1,123 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<ejb-jar xsi:schemaLocation="http://java.sun.com/xml/ns/j2eehttp://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd" version="2.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/j2ee">
+  <description>description</description>
+  <display-name>My  Favorite Ejb</display-name>
+  <enterprise-beans>
+    <entity>
+      <description>description</description>
+      <display-name>Favorite Bean</display-name>
+      <ejb-name>FavoriteBean</ejb-name>
+      <home>org.apache.geronimo.FavoriteBeanHome</home>
+      <remote>org.apache.geronimo.FavoriteBean</remote>
+      <ejb-class>org.apache.geronimo.FavoriteBeanEJB</ejb-class>
+      <persistence-type>Container</persistence-type>
+      <prim-key-class>java.lang.Integer</prim-key-class>
+      <reentrant>false</reentrant>
+      <cmp-version>1.x</cmp-version>
+      <cmp-field>
+        <field-name>id</field-name>
+      </cmp-field>
+      <cmp-field>
+        <field-name>preference</field-name>
+      </cmp-field>
+      <cmp-field>
+        <field-name>color</field-name>
+      </cmp-field>
+      <primkey-field>id</primkey-field>
+    </entity>
+  </enterprise-beans>
+  <assembly-descriptor>
+    <container-transaction>
+      <method>
+        <ejb-name>FavoriteBean</ejb-name>
+        <method-intf>Home</method-intf>
+        <method-name>remove</method-name>
+        <method-params>
+          <method-param>java.lang.Object</method-param>
+        </method-params>
+      </method>
+      <trans-attribute>Required</trans-attribute>
+    </container-transaction>
+    <container-transaction>
+      <method>
+        <ejb-name>FavoriteBean</ejb-name>
+        <method-intf>Home</method-intf>
+        <method-name>create</method-name>
+        <method-params>
+          <method-param>int</method-param>
+          <method-param>float</method-param>
+          <method-param>java.lang.String</method-param>
+        </method-params>
+      </method>
+      <trans-attribute>Required</trans-attribute>
+    </container-transaction>
+    <container-transaction>
+      <method>
+        <ejb-name>FavoriteBean</ejb-name>
+        <method-intf>Remote</method-intf>
+        <method-name>getPreference</method-name>
+        <method-params/>
+      </method>
+      <trans-attribute>Required</trans-attribute>
+    </container-transaction>
+    <container-transaction>
+      <method>
+        <ejb-name>FavoriteBean</ejb-name>
+        <method-intf>Remote</method-intf>
+        <method-name>remove</method-name>
+        <method-params/>
+      </method>
+      <trans-attribute>Required</trans-attribute>
+    </container-transaction>
+    <container-transaction>
+      <method>
+        <ejb-name>FavoriteBean</ejb-name>
+        <method-intf>Home</method-intf>
+        <method-name>remove</method-name>
+        <method-params>
+          <method-param>javax.ejb.Handle</method-param>
+        </method-params>
+      </method>
+      <trans-attribute>Required</trans-attribute>
+    </container-transaction>
+    <container-transaction>
+      <method>
+        <ejb-name>FavoriteBean</ejb-name>
+        <method-intf>Home</method-intf>
+        <method-name>findByPrimaryKey</method-name>
+        <method-params>
+          <method-param>java.lang.Integer</method-param>
+        </method-params>
+      </method>
+      <trans-attribute>Required</trans-attribute>
+    </container-transaction>
+    <container-transaction>
+      <method>
+        <ejb-name>FavoriteBean</ejb-name>
+        <method-intf>Remote</method-intf>
+        <method-name>updatePreference</method-name>
+        <method-params>
+          <method-param>float</method-param>
+        </method-params>
+      </method>
+      <trans-attribute>Required</trans-attribute>
+    </container-transaction>
+  </assembly-descriptor>
+</ejb-jar>

Added: geronimo/server/trunk/modules/geronimo-openejb-builder/src/test/resources/j2ee_1_3dtd/ejb-jar-21.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-openejb-builder/src/test/resources/j2ee_1_3dtd/ejb-jar-21.xml?view=auto&rev=497146
==============================================================================
--- geronimo/server/trunk/modules/geronimo-openejb-builder/src/test/resources/j2ee_1_3dtd/ejb-jar-21.xml (added)
+++ geronimo/server/trunk/modules/geronimo-openejb-builder/src/test/resources/j2ee_1_3dtd/ejb-jar-21.xml Wed Jan 17 12:03:23 2007
@@ -0,0 +1,323 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<ejb-jar 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"
+    version="2.1">
+    <enterprise-beans>
+        <session>
+            <ejb-name>SimpleStatelessSession</ejb-name>
+            <home>org.apache.openejb.test.simple.slsb.SimpleStatelessSessionHome</home>
+            <remote>org.apache.openejb.test.simple.slsb.SimpleStatelessSession</remote>
+            <local-home>org.apache.openejb.test.simple.slsb.SimpleStatelessSessionLocalHome</local-home>
+            <local>org.apache.openejb.test.simple.slsb.SimpleStatelessSessionLocal</local>
+            <ejb-class>org.apache.openejb.test.simple.slsb.SimpleStatelessSessionEJB</ejb-class>
+            <session-type>Stateless</session-type>
+            <transaction-type>Container</transaction-type>
+            <env-entry>
+                <env-entry-name>envEntry</env-entry-name>
+                <env-entry-type>java.lang.String</env-entry-type>
+            </env-entry>
+            <ejb-ref>
+                <ejb-ref-name>ejb/ref</ejb-ref-name>
+                <ejb-ref-type>Entity</ejb-ref-type>
+                <home>org.Home</home>
+                <remote>org.Remote</remote>
+            </ejb-ref>
+            <ejb-local-ref>
+                <ejb-ref-name>ejb.localref</ejb-ref-name>
+                <ejb-ref-type>Entity</ejb-ref-type>
+                <local-home>org.LocalHome</local-home>
+                <local>org.Local</local>
+            </ejb-local-ref>
+            <resource-ref>
+                <res-ref-name>resourceref</res-ref-name>
+                <res-type>javax.sql.DataSource</res-type>
+                <res-auth>Container</res-auth>
+                <res-sharing-scope>Shareable</res-sharing-scope>
+            </resource-ref>
+            <resource-env-ref>
+                <resource-env-ref-name>resourceenvref</resource-env-ref-name>
+                <resource-env-ref-type>javax.jms.Queue</resource-env-ref-type>
+            </resource-env-ref>
+            <security-role-ref>
+                <role-name>roleref</role-name>
+            </security-role-ref>
+            <security-identity>
+                <use-caller-identity/>
+            </security-identity>
+        </session>
+        <session>
+            <ejb-name>SimpleStatefulSession</ejb-name>
+            <home>org.apache.openejb.test.simple.sfsb.SimpleStatefulSessionHome</home>
+            <remote>org.apache.openejb.test.simple.sfsb.SimpleStatefulSession</remote>
+            <local-home>org.apache.openejb.test.simple.sfsb.SimpleStatefulSessionLocalHome</local-home>
+            <local>org.apache.openejb.test.simple.sfsb.SimpleStatefulSessionLocal</local>
+            <ejb-class>org.apache.openejb.test.simple.sfsb.SimpleStatefulSessionEJB</ejb-class>
+            <session-type>Stateful</session-type>
+            <transaction-type>Container</transaction-type>
+        </session>
+        <entity>
+            <ejb-name>SimpleBMPEntity</ejb-name>
+            <home>org.apache.openejb.test.simple.bmp.SimpleBMPEntityHome</home>
+            <remote>org.apache.openejb.test.simple.bmp.SimpleBMPEntity</remote>
+            <local-home>org.apache.openejb.test.simple.bmp.SimpleBMPEntityLocalHome</local-home>
+            <local>org.apache.openejb.test.simple.bmp.SimpleBMPEntityLocal</local>
+            <ejb-class>org.apache.openejb.test.simple.bmp.SimpleBMPEntityEJB</ejb-class>
+            <persistence-type>Bean</persistence-type>
+            <prim-key-class>java.lang.Integer</prim-key-class>
+            <reentrant>false</reentrant>
+            <env-entry>
+                <env-entry-name>envEntry</env-entry-name>
+                <env-entry-type>java.lang.String</env-entry-type>
+            </env-entry>
+            <ejb-ref>
+                <ejb-ref-name>ejb/ref</ejb-ref-name>
+                <ejb-ref-type>Entity</ejb-ref-type>
+                <home>org.Home</home>
+                <remote>org.Remote</remote>
+            </ejb-ref>
+            <ejb-local-ref>
+                <ejb-ref-name>ejb.localref</ejb-ref-name>
+                <ejb-ref-type>Entity</ejb-ref-type>
+                <local-home>org.LocalHome</local-home>
+                <local>org.Local</local>
+            </ejb-local-ref>
+            <resource-ref>
+                <res-ref-name>resourceref</res-ref-name>
+                <res-type>javax.sql.DataSource</res-type>
+                <res-auth>Container</res-auth>
+                <res-sharing-scope>Shareable</res-sharing-scope>
+            </resource-ref>
+            <resource-env-ref>
+                <resource-env-ref-name>resourceenvref</resource-env-ref-name>
+                <resource-env-ref-type>javax.jms.Queue</resource-env-ref-type>
+            </resource-env-ref>
+            <security-role-ref>
+                <role-name>roleref</role-name>
+            </security-role-ref>
+            <security-identity>
+                <use-caller-identity/>
+            </security-identity>
+        </entity>
+        <entity>
+            <ejb-name>SimpleCMPEntity</ejb-name>
+            <home>org.apache.openejb.test.simple.cmp.SimpleCMPEntityHome</home>
+            <remote>org.apache.openejb.test.simple.cmp.SimpleCMPEntity</remote>
+            <local-home>org.apache.openejb.test.simple.cmp.SimpleCMPEntityLocalHome</local-home>
+            <local>org.apache.openejb.test.simple.cmp.SimpleCMPEntityLocal</local>
+            <ejb-class>org.apache.openejb.test.simple.cmp.SimpleCMPEntityEJB</ejb-class>
+            <persistence-type>Container</persistence-type>
+            <prim-key-class>java.lang.Integer</prim-key-class>
+            <reentrant>false</reentrant>
+            <cmp-version>2.x</cmp-version>
+            <abstract-schema-name>SimpleCMP</abstract-schema-name>
+            <cmp-field>
+                <field-name>id</field-name>
+            </cmp-field>
+            <cmp-field>
+                <field-name>firstName</field-name>
+            </cmp-field>
+            <cmp-field>
+                <field-name>lastName</field-name>
+            </cmp-field>
+            <primkey-field>id</primkey-field>
+            <env-entry>
+                <env-entry-name>envEntry</env-entry-name>
+                <env-entry-type>java.lang.String</env-entry-type>
+            </env-entry>
+            <ejb-ref>
+                <ejb-ref-name>ejb/ref</ejb-ref-name>
+                <ejb-ref-type>Entity</ejb-ref-type>
+                <home>org.Home</home>
+                <remote>org.Remote</remote>
+            </ejb-ref>
+            <ejb-local-ref>
+                <ejb-ref-name>ejb.localref</ejb-ref-name>
+                <ejb-ref-type>Entity</ejb-ref-type>
+                <local-home>org.LocalHome</local-home>
+                <local>org.Local</local>
+            </ejb-local-ref>
+            <resource-ref>
+                <res-ref-name>resourceref</res-ref-name>
+                <res-type>javax.sql.DataSource</res-type>
+                <res-auth>Container</res-auth>
+                <res-sharing-scope>Shareable</res-sharing-scope>
+            </resource-ref>
+            <resource-env-ref>
+                <resource-env-ref-name>resourceenvref</resource-env-ref-name>
+                <resource-env-ref-type>javax.jms.Queue</resource-env-ref-type>
+            </resource-env-ref>
+            <security-role-ref>
+                <role-name>roleref</role-name>
+            </security-role-ref>
+            <security-identity>
+                <use-caller-identity/>
+            </security-identity>
+        </entity>
+        <message-driven>
+            <description>hey its a mdb</description>
+            <display-name>some CMT mdb</display-name>
+            <ejb-name>SampleCMTMDB</ejb-name>
+            <ejb-class>org.apache.openejb.test.mdb.CMTMDB</ejb-class>
+            <messaging-type>javax.jms.MessageListener</messaging-type>
+            <transaction-type>Container</transaction-type>
+            <activation-config>
+                <activation-config-property>
+                    <activation-config-property-name>messageSelector</activation-config-property-name>
+                    <activation-config-property-value>some selector</activation-config-property-value>
+                </activation-config-property>
+                <activation-config-property>
+                    <activation-config-property-name>destinationType</activation-config-property-name>
+                    <activation-config-property-value>javax.jms.Queue</activation-config-property-value>
+                </activation-config-property>
+                <activation-config-property>
+                    <activation-config-property-name>subscriptionDurability</activation-config-property-name>
+                    <activation-config-property-value>Durable</activation-config-property-value>
+                </activation-config-property>
+            </activation-config>
+            <env-entry>
+                <env-entry-name>envEntry</env-entry-name>
+                <env-entry-type>java.lang.String</env-entry-type>
+            </env-entry>
+            <ejb-ref>
+                <ejb-ref-name>ejb/ref</ejb-ref-name>
+                <ejb-ref-type>Entity</ejb-ref-type>
+                <home>org.Home</home>
+                <remote>org.Remote</remote>
+            </ejb-ref>
+            <ejb-local-ref>
+                <ejb-ref-name>ejb.localref</ejb-ref-name>
+                <ejb-ref-type>Entity</ejb-ref-type>
+                <local-home>org.LocalHome</local-home>
+                <local>org.Local</local>
+            </ejb-local-ref>
+            <resource-ref>
+                <res-ref-name>resourceref</res-ref-name>
+                <res-type>javax.sql.DataSource</res-type>
+                <res-auth>Container</res-auth>
+                <res-sharing-scope>Shareable</res-sharing-scope>
+            </resource-ref>
+            <resource-env-ref>
+                <resource-env-ref-name>resourceenvref</resource-env-ref-name>
+                <resource-env-ref-type>javax.jms.Queue</resource-env-ref-type>
+            </resource-env-ref>
+            <security-identity>
+                <run-as>
+                    <role-name>me</role-name>
+                </run-as>
+            </security-identity>
+        </message-driven>
+        <message-driven>
+            <description>hey its another mdb</description>
+            <display-name>some BMT mdb</display-name>
+            <ejb-name>SampleBMTMDB</ejb-name>
+            <ejb-class>org.apache.openejb.test.mdb.BMTMDB</ejb-class>
+            <messaging-type>javax.jms.MessageListener</messaging-type>
+            <transaction-type>Bean</transaction-type>
+            <activation-config>
+                <activation-config-property>
+                    <activation-config-property-name>messageSelector</activation-config-property-name>
+                    <activation-config-property-value>some selector</activation-config-property-value>
+                </activation-config-property>
+                <activation-config-property>
+                    <activation-config-property-name>acknowledgeMode</activation-config-property-name>
+                    <activation-config-property-value>Dups-ok-acknowledge</activation-config-property-value>
+                </activation-config-property>
+                <activation-config-property>
+                    <activation-config-property-name>destinationType</activation-config-property-name>
+                    <activation-config-property-value>javax.jms.Queue</activation-config-property-value>
+                </activation-config-property>
+                <activation-config-property>
+                    <activation-config-property-name>subscriptionDurability</activation-config-property-name>
+                    <activation-config-property-value>Durable</activation-config-property-value>
+                </activation-config-property>
+            </activation-config>
+            <env-entry>
+                <description>sure, it's like this</description>
+                <env-entry-name>EnvEntry</env-entry-name>
+                <env-entry-type>java.lang.String</env-entry-type>
+                <env-entry-value>value</env-entry-value>
+            </env-entry>
+        </message-driven>
+    </enterprise-beans>
+    <assembly-descriptor>
+        <method-permission>
+            <unchecked/>
+            <method>
+                <ejb-name>SimpleStatelessSession</ejb-name>
+                <method-name>*</method-name>
+            </method>
+        </method-permission>
+        <method-permission>
+            <unchecked/>
+            <method>
+                <ejb-name>SimpleStatefulSession</ejb-name>
+                <method-name>*</method-name>
+            </method>
+        </method-permission>
+        <method-permission>
+            <unchecked/>
+            <method>
+                <ejb-name>SimpleBMPEntity</ejb-name>
+                <method-name>*</method-name>
+            </method>
+        </method-permission>
+        <method-permission>
+            <unchecked/>
+            <method>
+                <ejb-name>SimpleCMPEntity</ejb-name>
+                <method-name>*</method-name>
+            </method>
+        </method-permission>
+        <container-transaction>
+            <description>Transaction attributes for 'SimpleStatelessSession' methods</description>
+            <method>
+                <ejb-name>SimpleStatelessSession</ejb-name>
+                <method-name>*</method-name>
+            </method>
+            <trans-attribute>Required</trans-attribute>
+        </container-transaction>
+        <container-transaction>
+            <description>Transaction attributes for 'SimpleStatefulSession' methods</description>
+            <method>
+                <ejb-name>SimpleStatefulSession</ejb-name>
+                <method-name>*</method-name>
+            </method>
+            <trans-attribute>Required</trans-attribute>
+        </container-transaction>
+        <container-transaction>
+            <description>Transaction attributes for 'SimpleBMPEntity' methods</description>
+            <method>
+                <ejb-name>SimpleBMPEntity</ejb-name>
+                <method-name>*</method-name>
+            </method>
+            <trans-attribute>Required</trans-attribute>
+        </container-transaction>
+        <container-transaction>
+            <description>Transaction attributes for 'SimpleCMPEntity' methods</description>
+            <method>
+                <ejb-name>SimpleCMPEntity</ejb-name>
+                <method-name>*</method-name>
+            </method>
+            <trans-attribute>Required</trans-attribute>
+        </container-transaction>
+    </assembly-descriptor>
+
+</ejb-jar>

Added: geronimo/server/trunk/modules/geronimo-openejb-builder/src/test/resources/j2ee_1_3dtd/ejb-jar.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-openejb-builder/src/test/resources/j2ee_1_3dtd/ejb-jar.xml?view=auto&rev=497146
==============================================================================
--- geronimo/server/trunk/modules/geronimo-openejb-builder/src/test/resources/j2ee_1_3dtd/ejb-jar.xml (added)
+++ geronimo/server/trunk/modules/geronimo-openejb-builder/src/test/resources/j2ee_1_3dtd/ejb-jar.xml Wed Jan 17 12:03:23 2007
@@ -0,0 +1,301 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<!DOCTYPE ejb-jar PUBLIC
+	"-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
+	"http://java.sun.com/dtd/ejb-jar_2_0.dtd">
+
+<ejb-jar>
+    <enterprise-beans>
+        <session>
+            <ejb-name>SimpleStatelessSession</ejb-name>
+            <home>org.apache.openejb.test.simple.slsb.SimpleStatelessSessionHome</home>
+            <remote>org.apache.openejb.test.simple.slsb.SimpleStatelessSession</remote>
+            <local-home>org.apache.openejb.test.simple.slsb.SimpleStatelessSessionLocalHome</local-home>
+            <local>org.apache.openejb.test.simple.slsb.SimpleStatelessSessionLocal</local>
+            <ejb-class>org.apache.openejb.test.simple.slsb.SimpleStatelessSessionEJB</ejb-class>
+            <session-type>Stateless</session-type>
+            <transaction-type>Container</transaction-type>
+            <env-entry>
+                <env-entry-name>envEntry</env-entry-name>
+                <env-entry-type>java.lang.String</env-entry-type>
+            </env-entry>
+            <ejb-ref>
+                <ejb-ref-name>ejb/ref</ejb-ref-name>
+                <ejb-ref-type>Entity</ejb-ref-type>
+                <home>org.Home</home>
+                <remote>org.Remote</remote>
+            </ejb-ref>
+            <ejb-local-ref>
+                <ejb-ref-name>ejb.localref</ejb-ref-name>
+                <ejb-ref-type>Entity</ejb-ref-type>
+                <local-home>org.LocalHome</local-home>
+                <local>org.Local</local>
+            </ejb-local-ref>
+            <security-role-ref>
+                <role-name>roleref</role-name>
+            </security-role-ref>
+            <security-identity>
+                <use-caller-identity/>
+            </security-identity>
+            <resource-ref>
+                <res-ref-name>resourceref</res-ref-name>
+                <res-type>javax.sql.DataSource</res-type>
+                <res-auth>Container</res-auth>
+                <res-sharing-scope>Shareable</res-sharing-scope>
+            </resource-ref>
+            <resource-env-ref>
+                <resource-env-ref-name>resourceenvref</resource-env-ref-name>
+                <resource-env-ref-type>javax.jms.Queue</resource-env-ref-type>
+            </resource-env-ref>
+        </session>
+        <session>
+            <ejb-name>SimpleStatefulSession</ejb-name>
+            <home>org.apache.openejb.test.simple.sfsb.SimpleStatefulSessionHome</home>
+            <remote>org.apache.openejb.test.simple.sfsb.SimpleStatefulSession</remote>
+            <local-home>org.apache.openejb.test.simple.sfsb.SimpleStatefulSessionLocalHome</local-home>
+            <local>org.apache.openejb.test.simple.sfsb.SimpleStatefulSessionLocal</local>
+            <ejb-class>org.apache.openejb.test.simple.sfsb.SimpleStatefulSessionEJB</ejb-class>
+            <session-type>Stateful</session-type>
+            <transaction-type>Container</transaction-type>
+        </session>
+        <entity>
+            <ejb-name>SimpleBMPEntity</ejb-name>
+            <home>org.apache.openejb.test.simple.bmp.SimpleBMPEntityHome</home>
+            <remote>org.apache.openejb.test.simple.bmp.SimpleBMPEntity</remote>
+            <local-home>org.apache.openejb.test.simple.bmp.SimpleBMPEntityLocalHome</local-home>
+            <local>org.apache.openejb.test.simple.bmp.SimpleBMPEntityLocal</local>
+            <ejb-class>org.apache.openejb.test.simple.bmp.SimpleBMPEntityEJB</ejb-class>
+            <persistence-type>Bean</persistence-type>
+            <prim-key-class>java.lang.Integer</prim-key-class>
+            <reentrant>False</reentrant>
+            <env-entry>
+                <env-entry-name>envEntry</env-entry-name>
+                <env-entry-type>java.lang.String</env-entry-type>
+            </env-entry>
+            <ejb-ref>
+                <ejb-ref-name>ejb/ref</ejb-ref-name>
+                <ejb-ref-type>Entity</ejb-ref-type>
+                <home>org.Home</home>
+                <remote>org.Remote</remote>
+            </ejb-ref>
+            <ejb-local-ref>
+                <ejb-ref-name>ejb.localref</ejb-ref-name>
+                <ejb-ref-type>Entity</ejb-ref-type>
+                <local-home>org.LocalHome</local-home>
+                <local>org.Local</local>
+            </ejb-local-ref>
+            <security-role-ref>
+                <role-name>roleref</role-name>
+            </security-role-ref>
+            <security-identity>
+                <use-caller-identity/>
+            </security-identity>
+            <resource-ref>
+                <res-ref-name>resourceref</res-ref-name>
+                <res-type>javax.sql.DataSource</res-type>
+                <res-auth>Container</res-auth>
+                <res-sharing-scope>Shareable</res-sharing-scope>
+            </resource-ref>
+            <resource-env-ref>
+                <resource-env-ref-name>resourceenvref</resource-env-ref-name>
+                <resource-env-ref-type>javax.jms.Queue</resource-env-ref-type>
+            </resource-env-ref>
+        </entity>
+        <entity>
+            <ejb-name>SimpleCMPEntity</ejb-name>
+            <home>org.apache.openejb.test.simple.cmp.SimpleCMPEntityHome</home>
+            <remote>org.apache.openejb.test.simple.cmp.SimpleCMPEntity</remote>
+            <local-home>org.apache.openejb.test.simple.cmp.SimpleCMPEntityLocalHome</local-home>
+            <local>org.apache.openejb.test.simple.cmp.SimpleCMPEntityLocal</local>
+            <ejb-class>org.apache.openejb.test.simple.cmp.SimpleCMPEntityEJB</ejb-class>
+            <persistence-type>Container</persistence-type>
+            <prim-key-class>java.lang.Integer</prim-key-class>
+            <reentrant>False</reentrant>
+            <cmp-version>2.x</cmp-version>
+            <abstract-schema-name>SimpleCMP</abstract-schema-name>
+            <cmp-field>
+                <field-name>id</field-name>
+            </cmp-field>
+            <cmp-field>
+                <field-name>firstName</field-name>
+            </cmp-field>
+            <cmp-field>
+                <field-name>lastName</field-name>
+            </cmp-field>
+            <primkey-field>id</primkey-field>
+            <env-entry>
+                <env-entry-name>envEntry</env-entry-name>
+                <env-entry-type>java.lang.String</env-entry-type>
+            </env-entry>
+            <ejb-ref>
+                <ejb-ref-name>ejb/ref</ejb-ref-name>
+                <ejb-ref-type>Entity</ejb-ref-type>
+                <home>org.Home</home>
+                <remote>org.Remote</remote>
+            </ejb-ref>
+            <ejb-local-ref>
+                <ejb-ref-name>ejb.localref</ejb-ref-name>
+                <ejb-ref-type>Entity</ejb-ref-type>
+                <local-home>org.LocalHome</local-home>
+                <local>org.Local</local>
+            </ejb-local-ref>
+            <security-role-ref>
+                <role-name>roleref</role-name>
+            </security-role-ref>
+            <security-identity>
+                <use-caller-identity/>
+            </security-identity>
+            <resource-ref>
+                <res-ref-name>resourceref</res-ref-name>
+                <res-type>javax.sql.DataSource</res-type>
+                <res-auth>Container</res-auth>
+                <res-sharing-scope>Shareable</res-sharing-scope>
+            </resource-ref>
+            <resource-env-ref>
+                <resource-env-ref-name>resourceenvref</resource-env-ref-name>
+                <resource-env-ref-type>javax.jms.Queue</resource-env-ref-type>
+            </resource-env-ref>
+        </entity>
+        <message-driven>
+            <description>hey its a mdb</description>
+            <display-name>some CMT mdb</display-name>
+            <ejb-name>SampleCMTMDB</ejb-name>
+            <ejb-class>org.apache.openejb.test.mdb.CMTMDB</ejb-class>
+            <transaction-type>Container</transaction-type>
+            <message-selector>some selector</message-selector>
+            <message-driven-destination>
+                <destination-type>javax.jms.Queue</destination-type>
+                <subscription-durability>Durable</subscription-durability>
+            </message-driven-destination>
+            <env-entry>
+                <env-entry-name>envEntry</env-entry-name>
+                <env-entry-type>java.lang.String</env-entry-type>
+            </env-entry>
+            <ejb-ref>
+                <ejb-ref-name>ejb/ref</ejb-ref-name>
+                <ejb-ref-type>Entity</ejb-ref-type>
+                <home>org.Home</home>
+                <remote>org.Remote</remote>
+            </ejb-ref>
+            <ejb-local-ref>
+                <ejb-ref-name>ejb.localref</ejb-ref-name>
+                <ejb-ref-type>Entity</ejb-ref-type>
+                <local-home>org.LocalHome</local-home>
+                <local>org.Local</local>
+            </ejb-local-ref>
+            <security-identity>
+                <run-as>
+                    <role-name>me</role-name>
+                </run-as>
+            </security-identity>
+            <resource-ref>
+                <res-ref-name>resourceref</res-ref-name>
+                <res-type>javax.sql.DataSource</res-type>
+                <res-auth>Container</res-auth>
+                <res-sharing-scope>Shareable</res-sharing-scope>
+            </resource-ref>
+            <resource-env-ref>
+                <resource-env-ref-name>resourceenvref</resource-env-ref-name>
+                <resource-env-ref-type>javax.jms.Queue</resource-env-ref-type>
+            </resource-env-ref>
+        </message-driven>
+        <message-driven>
+            <description>hey its another mdb</description>
+            <display-name>some BMT mdb</display-name>
+            <ejb-name>SampleBMTMDB</ejb-name>
+            <ejb-class>org.apache.openejb.test.mdb.BMTMDB</ejb-class>
+            <transaction-type>Bean</transaction-type>
+            <message-selector>some selector</message-selector>
+            <acknowledge-mode>Dups-ok-acknowledge</acknowledge-mode>
+            <message-driven-destination>
+                <destination-type>javax.jms.Queue</destination-type>
+                <subscription-durability>Durable</subscription-durability>
+            </message-driven-destination>
+            <env-entry>
+                <description>sure, it's like this</description>
+                <env-entry-name>EnvEntry</env-entry-name>
+                <env-entry-type>java.lang.String</env-entry-type>
+                <env-entry-value>value</env-entry-value>
+            </env-entry>
+        </message-driven>
+    </enterprise-beans>
+    <assembly-descriptor>
+        <method-permission>
+            <unchecked/>
+            <method>
+                <ejb-name>SimpleStatelessSession</ejb-name>
+                <method-name>*</method-name>
+            </method>
+        </method-permission>
+        <method-permission>
+            <unchecked/>
+            <method>
+                <ejb-name>SimpleStatefulSession</ejb-name>
+                <method-name>*</method-name>
+            </method>
+        </method-permission>
+        <method-permission>
+            <unchecked/>
+            <method>
+                <ejb-name>SimpleBMPEntity</ejb-name>
+                <method-name>*</method-name>
+            </method>
+        </method-permission>
+        <method-permission>
+            <unchecked/>
+            <method>
+                <ejb-name>SimpleCMPEntity</ejb-name>
+                <method-name>*</method-name>
+            </method>
+        </method-permission>
+        <container-transaction>
+            <description>Transaction attributes for 'SimpleStatelessSession' methods</description>
+            <method>
+                <ejb-name>SimpleStatelessSession</ejb-name>
+                <method-name>*</method-name>
+            </method>
+            <trans-attribute>Required</trans-attribute>
+        </container-transaction>
+        <container-transaction>
+            <description>Transaction attributes for 'SimpleStatefulSession' methods</description>
+            <method>
+                <ejb-name>SimpleStatefulSession</ejb-name>
+                <method-name>*</method-name>
+            </method>
+            <trans-attribute>Required</trans-attribute>
+        </container-transaction>
+        <container-transaction>
+            <description>Transaction attributes for 'SimpleBMPEntity' methods</description>
+            <method>
+                <ejb-name>SimpleBMPEntity</ejb-name>
+                <method-name>*</method-name>
+            </method>
+            <trans-attribute>Required</trans-attribute>
+        </container-transaction>
+        <container-transaction>
+            <description>Transaction attributes for 'SimpleCMPEntity' methods</description>
+            <method>
+                <ejb-name>SimpleCMPEntity</ejb-name>
+                <method-name>*</method-name>
+            </method>
+            <trans-attribute>Required</trans-attribute>
+        </container-transaction>
+    </assembly-descriptor>
+
+</ejb-jar>

Added: geronimo/server/trunk/modules/geronimo-openejb-builder/src/test/resources/j2ee_1_3dtd/mdb-ejb-jar-20-GERONIMO-1649.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-openejb-builder/src/test/resources/j2ee_1_3dtd/mdb-ejb-jar-20-GERONIMO-1649.xml?view=auto&rev=497146
==============================================================================
--- geronimo/server/trunk/modules/geronimo-openejb-builder/src/test/resources/j2ee_1_3dtd/mdb-ejb-jar-20-GERONIMO-1649.xml (added)
+++ geronimo/server/trunk/modules/geronimo-openejb-builder/src/test/resources/j2ee_1_3dtd/mdb-ejb-jar-20-GERONIMO-1649.xml Wed Jan 17 12:03:23 2007
@@ -0,0 +1,102 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+    
+<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
+
+<ejb-jar id="ejb-jar_1">
+
+   <description>Test EJB JAR for GERONIMO-1649</description>
+   <display-name>Test for GERONIMO-1649</display-name>
+
+   <enterprise-beans>
+
+      <!-- Message Driven Beans -->
+
+      <message-driven id="MessageDriven_1">
+         <description>Message driven bean 1</description>
+         <display-name>MDBean</display-name>
+
+         <ejb-name>SimpleStatelessSession</ejb-name>
+
+         <ejb-class>org.apache.openejb.test.simple.slsb.SimpleStatelessSessionEJB</ejb-class>
+
+         <transaction-type>Container</transaction-type>
+         <acknowledge-mode>Auto-acknowledge</acknowledge-mode>
+         <message-driven-destination>
+            <destination-type>javax.jms.Queue</destination-type>
+            <subscription-durability>Durable</subscription-durability>
+         </message-driven-destination>
+
+         <security-identity>
+            <run-as>
+               <role-name>rolename</role-name>
+            </run-as>
+         </security-identity>
+
+         <resource-ref id="ResRef_1">
+            <res-ref-name>jdbc/MYDS</res-ref-name>
+            <res-type>javax.sql.DataSource</res-type>
+            <res-auth>Container</res-auth>
+         </resource-ref>
+         <resource-ref id="ResRef_2">
+            <res-ref-name>jdbc/MYDS2</res-ref-name>
+            <res-type>javax.sql.DataSource</res-type>
+            <res-auth>Container</res-auth>
+         </resource-ref>
+         <resource-ref id="ResRef_3">
+            <res-ref-name>jdbc/MYDS3</res-ref-name>
+            <res-type>javax.sql.DataSource</res-type>
+            <res-auth>Container</res-auth>
+         </resource-ref>
+         <resource-ref id="ResRef_4">
+            <res-ref-name>jms/wpConnectionFactory</res-ref-name>
+            <res-type>javax.jms.QueueConnectionFactory</res-type>
+            <res-auth>Container</res-auth>
+         </resource-ref>
+
+      </message-driven>
+
+   </enterprise-beans>
+
+   <assembly-descriptor id="AssemblyDescriptor_1">
+
+      <security-role>
+         <description>A description</description>
+         <role-name>rolename</role-name>
+      </security-role>
+
+   <method-permission id="MethodPermission_1">
+      <description>A description</description>
+      <role-name>rolename</role-name>
+      <method id="MethodElement_1">
+         <description>A description</description>
+         <ejb-name>SimpleStatelessSession</ejb-name>
+         <method-name>*</method-name>
+      </method>
+   </method-permission>
+    
+   <container-transaction id="MethodTransaction_2">
+      <method id="MethodElement_2">
+         <ejb-name>SimpleStatelessSession</ejb-name>
+          <method-name>*</method-name>
+       </method>
+       <trans-attribute>NotSupported</trans-attribute>
+    </container-transaction>
+   </assembly-descriptor>
+
+</ejb-jar>

Added: geronimo/server/trunk/modules/geronimo-openejb-builder/src/test/resources/j2ee_1_3dtd/mdb-ejb-jar-20.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-openejb-builder/src/test/resources/j2ee_1_3dtd/mdb-ejb-jar-20.xml?view=auto&rev=497146
==============================================================================
--- geronimo/server/trunk/modules/geronimo-openejb-builder/src/test/resources/j2ee_1_3dtd/mdb-ejb-jar-20.xml (added)
+++ geronimo/server/trunk/modules/geronimo-openejb-builder/src/test/resources/j2ee_1_3dtd/mdb-ejb-jar-20.xml Wed Jan 17 12:03:23 2007
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
+<ejb-jar id="ejb-jar_ID">
+    <enterprise-beans>
+        <message-driven>
+            <ejb-name>BasicMessageBean</ejb-name>
+            <ejb-class>org.acme.BasicMessageBean</ejb-class>
+            <transaction-type>Container</transaction-type>
+            <message-driven-destination>
+                <destination-type>javax.jms.Queue</destination-type>
+            </message-driven-destination>
+        </message-driven>
+    </enterprise-beans>
+</ejb-jar>

Added: geronimo/server/trunk/modules/geronimo-openejb-builder/src/test/resources/j2ee_1_3dtd/mdb-ejb-jar-21-GERONIMO-1649.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-openejb-builder/src/test/resources/j2ee_1_3dtd/mdb-ejb-jar-21-GERONIMO-1649.xml?view=auto&rev=497146
==============================================================================
--- geronimo/server/trunk/modules/geronimo-openejb-builder/src/test/resources/j2ee_1_3dtd/mdb-ejb-jar-21-GERONIMO-1649.xml (added)
+++ geronimo/server/trunk/modules/geronimo-openejb-builder/src/test/resources/j2ee_1_3dtd/mdb-ejb-jar-21-GERONIMO-1649.xml Wed Jan 17 12:03:23 2007
@@ -0,0 +1,94 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<ejb-jar xsi:schemaLocation="http://java.sun.com/xml/ns/j2eehttp://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd" version="2.1" id="ejb-jar_1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/j2ee">
+  <description>Test EJB JAR for GERONIMO-1649</description>
+  <display-name>Test for GERONIMO-1649</display-name>
+  <enterprise-beans>
+    <!--Message Driven Beans-->
+    <message-driven id="MessageDriven_1">
+      <description>Message driven bean 1</description>
+      <display-name>MDBean</display-name>
+      <ejb-name>SimpleStatelessSession</ejb-name>
+      <ejb-class>org.apache.openejb.test.simple.slsb.SimpleStatelessSessionEJB</ejb-class>
+      <messaging-type>javax.jms.MessageListener</messaging-type>
+      <transaction-type>Container</transaction-type>
+      <activation-config>
+        <activation-config-property>
+          <activation-config-property-name>acknowledgeMode</activation-config-property-name>
+          <activation-config-property-value>Auto-acknowledge</activation-config-property-value>
+        </activation-config-property>
+        <activation-config-property>
+          <activation-config-property-name>destinationType</activation-config-property-name>
+          <activation-config-property-value>javax.jms.Queue</activation-config-property-value>
+        </activation-config-property>
+        <activation-config-property>
+          <activation-config-property-name>subscriptionDurability</activation-config-property-name>
+          <activation-config-property-value>Durable</activation-config-property-value>
+        </activation-config-property>
+      </activation-config>
+      <resource-ref id="ResRef_1">
+        <res-ref-name>jdbc/MYDS</res-ref-name>
+        <res-type>javax.sql.DataSource</res-type>
+        <res-auth>Container</res-auth>
+      </resource-ref>
+      <resource-ref id="ResRef_2">
+        <res-ref-name>jdbc/MYDS2</res-ref-name>
+        <res-type>javax.sql.DataSource</res-type>
+        <res-auth>Container</res-auth>
+      </resource-ref>
+      <resource-ref id="ResRef_3">
+        <res-ref-name>jdbc/MYDS3</res-ref-name>
+        <res-type>javax.sql.DataSource</res-type>
+        <res-auth>Container</res-auth>
+      </resource-ref>
+      <resource-ref id="ResRef_4">
+        <res-ref-name>jms/wpConnectionFactory</res-ref-name>
+        <res-type>javax.jms.QueueConnectionFactory</res-type>
+        <res-auth>Container</res-auth>
+      </resource-ref>
+      <security-identity>
+        <run-as>
+          <role-name>rolename</role-name>
+        </run-as>
+      </security-identity>
+    </message-driven>
+  </enterprise-beans>
+  <assembly-descriptor id="AssemblyDescriptor_1">
+    <security-role>
+      <description>A description</description>
+      <role-name>rolename</role-name>
+    </security-role>
+    <method-permission id="MethodPermission_1">
+      <description>A description</description>
+      <role-name>rolename</role-name>
+      <method id="MethodElement_1">
+        <description>A description</description>
+        <ejb-name>SimpleStatelessSession</ejb-name>
+        <method-name>*</method-name>
+      </method>
+    </method-permission>
+    <container-transaction id="MethodTransaction_2">
+      <method id="MethodElement_2">
+        <ejb-name>SimpleStatelessSession</ejb-name>
+        <method-name>*</method-name>
+      </method>
+      <trans-attribute>NotSupported</trans-attribute>
+    </container-transaction>
+  </assembly-descriptor>
+</ejb-jar>

Added: geronimo/server/trunk/modules/geronimo-openejb-builder/src/test/resources/j2ee_1_3dtd/mdb-ejb-jar-21.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-openejb-builder/src/test/resources/j2ee_1_3dtd/mdb-ejb-jar-21.xml?view=auto&rev=497146
==============================================================================
--- geronimo/server/trunk/modules/geronimo-openejb-builder/src/test/resources/j2ee_1_3dtd/mdb-ejb-jar-21.xml (added)
+++ geronimo/server/trunk/modules/geronimo-openejb-builder/src/test/resources/j2ee_1_3dtd/mdb-ejb-jar-21.xml Wed Jan 17 12:03:23 2007
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<ejb-jar
+    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xmlns="http://java.sun.com/xml/ns/j2ee"
+    version="2.1"
+    id="ejb-jar_ID"
+    >
+    <enterprise-beans>
+        <message-driven>
+            <ejb-name>BasicMessageBean</ejb-name>
+            <ejb-class>org.acme.BasicMessageBean</ejb-class>
+            <messaging-type>javax.jms.MessageListener</messaging-type>
+            <transaction-type>Container</transaction-type>
+            <activation-config>
+                <activation-config-property>
+                    <activation-config-property-name>destinationType</activation-config-property-name>
+                    <activation-config-property-value>javax.jms.Queue</activation-config-property-value>
+                </activation-config-property>
+            </activation-config>
+        </message-driven>
+    </enterprise-beans>
+</ejb-jar>

Added: geronimo/server/trunk/modules/geronimo-openejb-builder/src/test/resources/j2ee_1_4schema/ejb-jar.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-openejb-builder/src/test/resources/j2ee_1_4schema/ejb-jar.xml?view=auto&rev=497146
==============================================================================
--- geronimo/server/trunk/modules/geronimo-openejb-builder/src/test/resources/j2ee_1_4schema/ejb-jar.xml (added)
+++ geronimo/server/trunk/modules/geronimo-openejb-builder/src/test/resources/j2ee_1_4schema/ejb-jar.xml Wed Jan 17 12:03:23 2007
@@ -0,0 +1,180 @@
+<?xml version="1.0" encoding="US-ASCII"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<ejb-jar 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"
+    version="2.1">
+
+    <enterprise-beans>
+        <session>
+            <ejb-name>SimpleStatelessSession</ejb-name>
+            <home>org.apache.openejb.test.simple.slsb.SimpleStatelessSessionHome</home>
+            <remote>org.apache.openejb.test.simple.slsb.SimpleStatelessSession</remote>
+            <local-home>org.apache.openejb.test.simple.slsb.SimpleStatelessSessionLocalHome</local-home>
+            <local>org.apache.openejb.test.simple.slsb.SimpleStatelessSessionLocal</local>
+            <ejb-class>org.apache.openejb.test.simple.slsb.SimpleStatelessSessionEJB</ejb-class>
+            <session-type>Stateless</session-type>
+            <transaction-type>Container</transaction-type>
+        </session>
+        <session>
+            <ejb-name>SimpleStatefulSession</ejb-name>
+            <home>org.apache.openejb.test.simple.sfsb.SimpleStatefulSessionHome</home>
+            <remote>org.apache.openejb.test.simple.sfsb.SimpleStatefulSession</remote>
+            <local-home>org.apache.openejb.test.simple.sfsb.SimpleStatefulSessionLocalHome</local-home>
+            <local>org.apache.openejb.test.simple.sfsb.SimpleStatefulSessionLocal</local>
+            <ejb-class>org.apache.openejb.test.simple.sfsb.SimpleStatefulSessionEJB</ejb-class>
+            <session-type>Stateful</session-type>
+            <transaction-type>Container</transaction-type>
+        </session>
+        <entity>
+            <ejb-name>SimpleBMPEntity</ejb-name>
+            <home>org.apache.openejb.test.simple.bmp.SimpleBMPEntityHome</home>
+            <remote>org.apache.openejb.test.simple.bmp.SimpleBMPEntity</remote>
+            <local-home>org.apache.openejb.test.simple.bmp.SimpleBMPEntityLocalHome</local-home>
+            <local>org.apache.openejb.test.simple.bmp.SimpleBMPEntityLocal</local>
+            <ejb-class>org.apache.openejb.test.simple.bmp.SimpleBMPEntityEJB</ejb-class>
+            <persistence-type>Bean</persistence-type>
+            <prim-key-class>java.lang.Integer</prim-key-class>
+            <reentrant>false</reentrant>
+        </entity>
+        <entity>
+            <ejb-name>SimpleCMPEntity</ejb-name>
+            <home>org.apache.openejb.test.simple.cmp.SimpleCMPEntityHome</home>
+            <remote>org.apache.openejb.test.simple.cmp.SimpleCMPEntity</remote>
+            <local-home>org.apache.openejb.test.simple.cmp.SimpleCMPEntityLocalHome</local-home>
+            <local>org.apache.openejb.test.simple.cmp.SimpleCMPEntityLocal</local>
+            <ejb-class>org.apache.openejb.test.simple.cmp.SimpleCMPEntityEJB</ejb-class>
+            <persistence-type>Container</persistence-type>
+            <prim-key-class>java.lang.Integer</prim-key-class>
+            <reentrant>false</reentrant>
+            <cmp-version>2.x</cmp-version>
+            <abstract-schema-name>SimpleCMP</abstract-schema-name>
+            <cmp-field>
+                <field-name>id</field-name>
+            </cmp-field>
+            <cmp-field>
+                <field-name>firstName</field-name>
+            </cmp-field>
+            <cmp-field>
+                <field-name>lastName</field-name>
+            </cmp-field>
+            <primkey-field>id</primkey-field>
+        </entity>
+        <message-driven>
+            <ejb-name>SimpleMessageDriven</ejb-name>
+            <ejb-class>org.apache.openejb.test.simple.mdb.SimpleMessageDrivenBean</ejb-class>
+            <messaging-type>javax.jms.MessageListener</messaging-type>
+            <transaction-type>Container</transaction-type>
+            <env-entry>
+                <env-entry-name>testEntry</env-entry-name>
+                <env-entry-type>java.lang.String</env-entry-type>
+                <env-entry-value>testString</env-entry-value>
+            </env-entry>
+        </message-driven>
+        <message-driven>
+            <ejb-name>SimpleMessageDrivenWithActivationConfig</ejb-name>
+            <ejb-class>org.apache.openejb.test.simple.mdb.SimpleMessageDrivenBean</ejb-class>
+            <messaging-type>javax.jms.MessageListener</messaging-type>
+            <transaction-type>Container</transaction-type>
+            <activation-config>
+                <activation-config-property>
+                    <activation-config-property-name>testProperty</activation-config-property-name>
+                    <activation-config-property-value>testValue</activation-config-property-value>
+                </activation-config-property>
+            </activation-config>
+            <env-entry>
+                <env-entry-name>testEntry</env-entry-name>
+                <env-entry-type>java.lang.String</env-entry-type>
+                <env-entry-value>testString</env-entry-value>
+            </env-entry>
+        </message-driven>
+    </enterprise-beans>
+    <assembly-descriptor>
+        <method-permission>
+            <unchecked/>
+            <method>
+                <ejb-name>SimpleStatelessSession</ejb-name>
+                <method-name>*</method-name>
+            </method>
+        </method-permission>
+        <method-permission>
+            <unchecked/>
+            <method>
+                <ejb-name>SimpleStatefulSession</ejb-name>
+                <method-name>*</method-name>
+            </method>
+        </method-permission>
+        <method-permission>
+            <unchecked/>
+            <method>
+                <ejb-name>SimpleBMPEntity</ejb-name>
+                <method-name>*</method-name>
+            </method>
+        </method-permission>
+        <method-permission>
+            <unchecked/>
+            <method>
+                <ejb-name>SimpleCMPEntity</ejb-name>
+                <method-name>*</method-name>
+            </method>
+        </method-permission>
+        <container-transaction>
+            <description>Transaction attributes for 'SimpleStatelessSession' methods</description>
+            <method>
+                <ejb-name>SimpleStatelessSession</ejb-name>
+                <method-name>*</method-name>
+            </method>
+            <trans-attribute>Required</trans-attribute>
+        </container-transaction>
+        <container-transaction>
+            <description>Transaction attributes for 'SimpleStatefulSession' methods</description>
+            <method>
+                <ejb-name>SimpleStatefulSession</ejb-name>
+                <method-name>*</method-name>
+            </method>
+            <trans-attribute>Required</trans-attribute>
+        </container-transaction>
+        <container-transaction>
+            <description>Transaction attributes for 'SimpleBMPEntity' methods</description>
+            <method>
+                <ejb-name>SimpleBMPEntity</ejb-name>
+                <method-name>*</method-name>
+            </method>
+            <trans-attribute>Required</trans-attribute>
+        </container-transaction>
+        <container-transaction>
+            <description>Transaction attributes for 'SimpleCMPEntity' methods</description>
+            <method>
+                <ejb-name>SimpleCMPEntity</ejb-name>
+                <method-name>*</method-name>
+            </method>
+            <trans-attribute>Required</trans-attribute>
+        </container-transaction>
+        <container-transaction>
+            <description>Transaction attributes for 'SimpleMessageDriven' methods</description>
+            <method>
+                <ejb-name>SimpleMessageDriven</ejb-name>
+                <method-name>*</method-name>
+            </method>
+            <trans-attribute>Required</trans-attribute>
+        </container-transaction>
+    </assembly-descriptor>
+
+</ejb-jar>



Mime
View raw message