You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by db...@apache.org on 2006/12/07 11:43:46 UTC
svn commit: r483409 [2/2] - in /incubator/openejb/trunk/openejb3/itests:
openejb-itests-beans/src/main/java/org/apache/openejb/test/entity/bmp/
openejb-itests-beans/src/main/java/org/apache/openejb/test/entity/cmp/
openejb-itests-beans/src/main/java/or...
Modified: incubator/openejb/trunk/openejb3/itests/openejb-itests-beans/src/main/resources/META-INF/ejb-jar.xml
URL: http://svn.apache.org/viewvc/incubator/openejb/trunk/openejb3/itests/openejb-itests-beans/src/main/resources/META-INF/ejb-jar.xml?view=diff&rev=483409&r1=483408&r2=483409
==============================================================================
--- incubator/openejb/trunk/openejb3/itests/openejb-itests-beans/src/main/resources/META-INF/ejb-jar.xml (original)
+++ incubator/openejb/trunk/openejb3/itests/openejb-itests-beans/src/main/resources/META-INF/ejb-jar.xml Thu Dec 7 02:43:45 2006
@@ -25,22 +25,22 @@
This ejb-jar file contains assembled enterprise beans that are
part of employee self-service application.
</description>
-
+
<enterprise-beans>
- <!--
+ <!--
########################################################
########################################################
###### CMP E N T I T Y B E A N S #################
########################################################
########################################################
-->
-
- <!--
+
+ <!--
########################################################
ID: client/tests/entity/cmp/BasicCmpHome
########################################################
-->
-
+
<entity>
<description>
The EmployeeRecord entity bean encapsulates access
@@ -65,12 +65,12 @@
</resource-ref>
</entity>
- <!--
+ <!--
########################################################
ID: client/tests/entity/cmp/allowed_operations/EntityHome
########################################################
-->
-
+
<entity>
<description>
blah, blah, blah
@@ -93,12 +93,12 @@
</resource-ref>
</entity>
- <!--
+ <!--
########################################################
ID: client/tests/entity/cmp/EncBean
########################################################
-->
-
+
<entity>
<description>
blah, blah, blah
@@ -157,26 +157,26 @@
<env-entry-value>D</env-entry-value>
</env-entry>
<ejb-ref>
- <ejb-ref-name>entity/cmp/beanReferences/cmp_entity</ejb-ref-name>
+ <ejb-ref-name>entity/cmp/beanReferences/cmp_entity</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<home>org.apache.openejb.test.entity.cmp.BasicCmpHome</home>
<remote>org.apache.openejb.test.entity.cmp.BasicCmpObject</remote>
<ejb-link>BasicCmpBean</ejb-link>
- </ejb-ref>
- <ejb-ref>
- <ejb-ref-name>entity/cmp/beanReferences/stateful</ejb-ref-name>
+ </ejb-ref>
+ <ejb-ref>
+ <ejb-ref-name>entity/cmp/beanReferences/stateful</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>org.apache.openejb.test.stateful.BasicStatefulHome</home>
<remote>org.apache.openejb.test.stateful.BasicStatefulObject</remote>
<ejb-link>BasicStatefulBean</ejb-link>
- </ejb-ref>
- <ejb-ref>
- <ejb-ref-name>entity/cmp/beanReferences/stateless</ejb-ref-name>
+ </ejb-ref>
+ <ejb-ref>
+ <ejb-ref-name>entity/cmp/beanReferences/stateless</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>org.apache.openejb.test.stateless.BasicStatelessHome</home>
<remote>org.apache.openejb.test.stateless.BasicStatelessObject</remote>
<ejb-link>BasicStatelessBean</ejb-link>
- </ejb-ref>
+ </ejb-ref>
<resource-ref>
<res-ref-name>datasource</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
@@ -189,12 +189,109 @@
</resource-ref>
</entity>
- <!--
+
+ <!--
+ ########################################################
+ ID: client/tests/entity/cmp/ContextLookupCmpBean
+ ########################################################
+ -->
+
+ <entity>
+ <description>
+ blah, blah, blah
+ </description>
+ <ejb-name>ContextLookupCmpBean</ejb-name>
+ <home>org.apache.openejb.test.entity.cmp.EncCmpHome</home>
+ <remote>org.apache.openejb.test.entity.cmp.EncCmpObject</remote>
+ <ejb-class>org.apache.openejb.test.entity.cmp.ContextLookupCmpBean</ejb-class>
+ <persistence-type>Container</persistence-type>
+ <prim-key-class>java.lang.Integer</prim-key-class>
+ <reentrant>False</reentrant>
+ <primkey-field>primaryKey</primkey-field>
+ <env-entry>
+ <env-entry-name>entity/cmp/references/Boolean</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>entity/cmp/references/String</env-entry-name>
+ <env-entry-type>java.lang.String</env-entry-type>
+ <env-entry-value>1</env-entry-value>
+ </env-entry>
+ <env-entry>
+ <env-entry-name>entity/cmp/references/Double</env-entry-name>
+ <env-entry-type>java.lang.Double</env-entry-type>
+ <env-entry-value>1</env-entry-value>
+ </env-entry>
+ <env-entry>
+ <env-entry-name>entity/cmp/references/Long</env-entry-name>
+ <env-entry-type>java.lang.Long</env-entry-type>
+ <env-entry-value>1</env-entry-value>
+ </env-entry>
+ <env-entry>
+ <env-entry-name>entity/cmp/references/Float</env-entry-name>
+ <env-entry-type>java.lang.Float</env-entry-type>
+ <env-entry-value>1</env-entry-value>
+ </env-entry>
+ <env-entry>
+ <env-entry-name>entity/cmp/references/Integer</env-entry-name>
+ <env-entry-type>java.lang.Integer</env-entry-type>
+ <env-entry-value>1</env-entry-value>
+ </env-entry>
+ <env-entry>
+ <env-entry-name>entity/cmp/references/Short</env-entry-name>
+ <env-entry-type>java.lang.Short</env-entry-type>
+ <env-entry-value>1</env-entry-value>
+ </env-entry>
+ <env-entry>
+ <env-entry-name>entity/cmp/references/Byte</env-entry-name>
+ <env-entry-type>java.lang.Byte</env-entry-type>
+ <env-entry-value>1</env-entry-value>
+ </env-entry>
+ <env-entry>
+ <env-entry-name>entity/cmp/references/Character</env-entry-name>
+ <env-entry-type>java.lang.Character</env-entry-type>
+ <env-entry-value>D</env-entry-value>
+ </env-entry>
+ <ejb-ref>
+ <ejb-ref-name>entity/cmp/beanReferences/cmp_entity</ejb-ref-name>
+ <ejb-ref-type>Entity</ejb-ref-type>
+ <home>org.apache.openejb.test.entity.cmp.BasicCmpHome</home>
+ <remote>org.apache.openejb.test.entity.cmp.BasicCmpObject</remote>
+ <ejb-link>BasicCmpBean</ejb-link>
+ </ejb-ref>
+ <ejb-ref>
+ <ejb-ref-name>entity/cmp/beanReferences/stateful</ejb-ref-name>
+ <ejb-ref-type>Session</ejb-ref-type>
+ <home>org.apache.openejb.test.stateful.BasicStatefulHome</home>
+ <remote>org.apache.openejb.test.stateful.BasicStatefulObject</remote>
+ <ejb-link>BasicStatefulBean</ejb-link>
+ </ejb-ref>
+ <ejb-ref>
+ <ejb-ref-name>entity/cmp/beanReferences/stateless</ejb-ref-name>
+ <ejb-ref-type>Session</ejb-ref-type>
+ <home>org.apache.openejb.test.stateless.BasicStatelessHome</home>
+ <remote>org.apache.openejb.test.stateless.BasicStatelessObject</remote>
+ <ejb-link>BasicStatelessBean</ejb-link>
+ </ejb-ref>
+ <resource-ref>
+ <res-ref-name>datasource</res-ref-name>
+ <res-type>javax.sql.DataSource</res-type>
+ <res-auth>Container</res-auth>
+ </resource-ref>
+ <resource-ref>
+ <res-ref-name>jdbc/basic/entityDatabase</res-ref-name>
+ <res-type>javax.sql.DataSource</res-type>
+ <res-auth>Container</res-auth>
+ </resource-ref>
+ </entity>
+
+ <!--
########################################################
ID: client/tests/entity/cmp/RMI-over-IIOP/EJBHome
########################################################
-->
-
+
<entity>
<description>
blah, blah, blah
@@ -207,36 +304,36 @@
<prim-key-class>java.lang.Integer</prim-key-class>
<reentrant>False</reentrant>
<primkey-field>primaryKey</primkey-field>
- <ejb-ref>
- <ejb-ref-name>cmp/rmi-iiop/home</ejb-ref-name>
- <ejb-ref-type>Entity</ejb-ref-type>
+ <ejb-ref>
+ <ejb-ref-name>cmp/rmi-iiop/home</ejb-ref-name>
+ <ejb-ref-type>Entity</ejb-ref-type>
<home>org.apache.openejb.test.entity.cmp.EncCmpHome</home>
<remote>org.apache.openejb.test.entity.cmp.EncCmpObject</remote>
<ejb-link>EncCmpBean</ejb-link>
- </ejb-ref>
+ </ejb-ref>
<security-role-ref>
<role-name>TheMan</role-name>
<role-link>Executive</role-link>
</security-role-ref>
</entity>
- <!--
+ <!--
########################################################
########################################################
#### S T A T E F U L S E S S I O N B E A N S #####
########################################################
########################################################
-->
-
- <!--
+
+ <!--
########################################################
ID: client/tests/stateful/BasicStatefulHome
########################################################
-->
-
+
<session>
- <description>A basic stateful session bean with contianer-managed
- transaction demarcation that implements the
+ <description>A basic stateful session bean with contianer-managed
+ transaction demarcation that implements the
javax.ejb.SessionSynchronization interface.
</description>
<ejb-name>BasicStatefulBean</ejb-name>
@@ -250,13 +347,13 @@
<role-link>Executive</role-link>
</security-role-ref>
</session>
-
- <!--
+
+ <!--
########################################################
ID: client/tests/stateful/BasicStatefulPojoHome
########################################################
-->
-
+
<session>
<description>
A basic stateful session pojo bean with container-managed transaction demarcation.
@@ -277,14 +374,14 @@
</security-role-ref>
</session>
- <!--
+ <!--
########################################################
ID: client/tests/stateful/BeanManagedBasicStatefulHome
########################################################
-->
-
+
<session>
- <description>A basic stateful session bean with bean-managed
+ <description>A basic stateful session bean with bean-managed
transaction demarcation.
</description>
<ejb-name>Basic BMT StatefulBean</ejb-name>
@@ -298,15 +395,15 @@
<role-link>Executive</role-link>
</security-role-ref>
</session>
-
- <!--
+
+ <!--
########################################################
ID: client/tests/stateful/BeanManagedTransactionTests/EJBHome
########################################################
-->
-
+
<session>
- <description>A basic stateful session bean with bean-managed
+ <description>A basic stateful session bean with bean-managed
transaction demarcation.
</description>
<ejb-name>BMT StatefulBean</ejb-name>
@@ -325,15 +422,15 @@
<res-auth>Container</res-auth>
</resource-ref>
</session>
-
- <!--
+
+ <!--
########################################################
ID: client/tests/stateful/EncBean
########################################################
-->
-
+
<session>
- <description>A basic stateful session bean with bean-managed
+ <description>A basic stateful session bean with bean-managed
transaction demarcation.
</description>
<ejb-name>EncStatefulBean</ejb-name>
@@ -388,26 +485,119 @@
<env-entry-value>D</env-entry-value>
</env-entry>
<ejb-ref>
- <ejb-ref-name>stateful/beanReferences/bmp_entity</ejb-ref-name>
+ <ejb-ref-name>stateful/beanReferences/bmp_entity</ejb-ref-name>
+ <ejb-ref-type>Entity</ejb-ref-type>
+ <home>org.apache.openejb.test.entity.bmp.BasicBmpHome</home>
+ <remote>org.apache.openejb.test.entity.bmp.BasicBmpObject</remote>
+ <ejb-link>BasicBmpBean</ejb-link>
+ </ejb-ref>
+ <ejb-ref>
+ <ejb-ref-name>stateful/beanReferences/stateful</ejb-ref-name>
+ <ejb-ref-type>Session</ejb-ref-type>
+ <home>org.apache.openejb.test.stateful.BasicStatefulHome</home>
+ <remote>org.apache.openejb.test.stateful.BasicStatefulObject</remote>
+ <ejb-link>BasicStatefulBean</ejb-link>
+ </ejb-ref>
+ <ejb-ref>
+ <ejb-ref-name>stateful/beanReferences/stateless</ejb-ref-name>
+ <ejb-ref-type>Session</ejb-ref-type>
+ <home>org.apache.openejb.test.stateless.BasicStatelessHome</home>
+ <remote>org.apache.openejb.test.stateless.BasicStatelessObject</remote>
+ <ejb-link>BasicStatelessBean</ejb-link>
+ </ejb-ref>
+ <security-role-ref>
+ <role-name>TheMan</role-name>
+ <role-link>Executive</role-link>
+ </security-role-ref>
+ <resource-ref>
+ <res-ref-name>datasource</res-ref-name>
+ <res-type>javax.sql.DataSource</res-type>
+ <res-auth>Container</res-auth>
+ </resource-ref>
+ </session>
+
+ <!--
+ ########################################################
+ ID: client/tests/stateful/ContextLookupStatefulBean
+ ########################################################
+ -->
+
+ <session>
+ <description>A basic stateful session bean with bean-managed
+ transaction demarcation.
+ </description>
+ <ejb-name>ContextLookupStatefulBean</ejb-name>
+ <home>org.apache.openejb.test.stateful.EncStatefulHome</home>
+ <remote>org.apache.openejb.test.stateful.EncStatefulObject</remote>
+ <ejb-class>org.apache.openejb.test.stateful.ContextLookupStatefulBean</ejb-class>
+ <session-type>Stateful</session-type>
+ <transaction-type>Bean</transaction-type>
+ <env-entry>
+ <env-entry-name>stateful/references/Boolean</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>stateful/references/String</env-entry-name>
+ <env-entry-type>java.lang.String</env-entry-type>
+ <env-entry-value>1</env-entry-value>
+ </env-entry>
+ <env-entry>
+ <env-entry-name>stateful/references/Double</env-entry-name>
+ <env-entry-type>java.lang.Double</env-entry-type>
+ <env-entry-value>1</env-entry-value>
+ </env-entry>
+ <env-entry>
+ <env-entry-name>stateful/references/Long</env-entry-name>
+ <env-entry-type>java.lang.Long</env-entry-type>
+ <env-entry-value>1</env-entry-value>
+ </env-entry>
+ <env-entry>
+ <env-entry-name>stateful/references/Float</env-entry-name>
+ <env-entry-type>java.lang.Float</env-entry-type>
+ <env-entry-value>1</env-entry-value>
+ </env-entry>
+ <env-entry>
+ <env-entry-name>stateful/references/Integer</env-entry-name>
+ <env-entry-type>java.lang.Integer</env-entry-type>
+ <env-entry-value>1</env-entry-value>
+ </env-entry>
+ <env-entry>
+ <env-entry-name>stateful/references/Short</env-entry-name>
+ <env-entry-type>java.lang.Short</env-entry-type>
+ <env-entry-value>1</env-entry-value>
+ </env-entry>
+ <env-entry>
+ <env-entry-name>stateful/references/Byte</env-entry-name>
+ <env-entry-type>java.lang.Byte</env-entry-type>
+ <env-entry-value>1</env-entry-value>
+ </env-entry>
+ <env-entry>
+ <env-entry-name>stateful/references/Character</env-entry-name>
+ <env-entry-type>java.lang.Character</env-entry-type>
+ <env-entry-value>D</env-entry-value>
+ </env-entry>
+ <ejb-ref>
+ <ejb-ref-name>stateful/beanReferences/bmp_entity</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<home>org.apache.openejb.test.entity.bmp.BasicBmpHome</home>
<remote>org.apache.openejb.test.entity.bmp.BasicBmpObject</remote>
<ejb-link>BasicBmpBean</ejb-link>
- </ejb-ref>
- <ejb-ref>
- <ejb-ref-name>stateful/beanReferences/stateful</ejb-ref-name>
+ </ejb-ref>
+ <ejb-ref>
+ <ejb-ref-name>stateful/beanReferences/stateful</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>org.apache.openejb.test.stateful.BasicStatefulHome</home>
<remote>org.apache.openejb.test.stateful.BasicStatefulObject</remote>
<ejb-link>BasicStatefulBean</ejb-link>
- </ejb-ref>
- <ejb-ref>
- <ejb-ref-name>stateful/beanReferences/stateless</ejb-ref-name>
+ </ejb-ref>
+ <ejb-ref>
+ <ejb-ref-name>stateful/beanReferences/stateless</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>org.apache.openejb.test.stateless.BasicStatelessHome</home>
<remote>org.apache.openejb.test.stateless.BasicStatelessObject</remote>
<ejb-link>BasicStatelessBean</ejb-link>
- </ejb-ref>
+ </ejb-ref>
<security-role-ref>
<role-name>TheMan</role-name>
<role-link>Executive</role-link>
@@ -418,13 +608,13 @@
<res-auth>Container</res-auth>
</resource-ref>
</session>
-
- <!--
+
+ <!--
########################################################
ID: client/tests/stateful/RMI-over-IIOP/EJBHome
########################################################
-->
-
+
<session>
<description>
The stateful bean for the RMI-IIOP Tests
@@ -435,35 +625,35 @@
<ejb-class>org.apache.openejb.test.stateful.RmiIiopStatefulBean</ejb-class>
<session-type>Stateful</session-type>
<transaction-type>Bean</transaction-type>
- <ejb-ref>
- <ejb-ref-name>stateful/rmi-iiop/home</ejb-ref-name>
+ <ejb-ref>
+ <ejb-ref-name>stateful/rmi-iiop/home</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>org.apache.openejb.test.stateful.EncStatefulHome</home>
<remote>org.apache.openejb.test.stateful.EncStatefulBean</remote>
<ejb-link>EncStatefulBean</ejb-link>
- </ejb-ref>
+ </ejb-ref>
<security-role-ref>
<role-name>TheMan</role-name>
<role-link>Executive</role-link>
</security-role-ref>
</session>
-
- <!--
+
+ <!--
########################################################
########################################################
### S T A T E L E S S S E S S I O N B E A N S ####
########################################################
########################################################
-->
-
- <!--
+
+ <!--
########################################################
ID: client/tests/stateless/BasicStatelessHome
########################################################
-->
-
+
<session>
- <description>A basic stateless session bean with contianer-managed
+ <description>A basic stateless session bean with contianer-managed
transaction demarcation.
</description>
<ejb-name>BasicStatelessBean</ejb-name>
@@ -477,13 +667,13 @@
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>Success</env-entry-value>
</env-entry>
- <ejb-ref>
- <ejb-ref-name>stateless/beanReferences/Enterprise_bean_access</ejb-ref-name>
+ <ejb-ref>
+ <ejb-ref-name>stateless/beanReferences/Enterprise_bean_access</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>org.apache.openejb.test.stateful.BasicStatefulHome</home>
<remote>org.apache.openejb.test.stateful.BasicStatefulObject</remote>
<ejb-link>BasicStatefulBean</ejb-link>
- </ejb-ref>
+ </ejb-ref>
<security-role-ref>
<role-name>BigWig</role-name>
<role-link>Teller</role-link>
@@ -501,7 +691,7 @@
<res-auth>Container</res-auth>
</resource-ref>
</session>
-
+
<!--
########################################################
ID: client/tests/stateless/BasicStatelessPojoHome
@@ -557,9 +747,9 @@
ID: client/tests/stateless/BeanManagedBasicStatelessHome
########################################################
-->
-
+
<session>
- <description>A basic stateless session bean with bean-managed
+ <description>A basic stateless session bean with bean-managed
transaction demarcation.
</description>
<ejb-name>Basic BMT StatelessBean</ejb-name>
@@ -573,13 +763,13 @@
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>Success</env-entry-value>
</env-entry>
- <ejb-ref>
- <ejb-ref-name>stateless/beanReferences/Enterprise_bean_access</ejb-ref-name>
+ <ejb-ref>
+ <ejb-ref-name>stateless/beanReferences/Enterprise_bean_access</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>org.apache.openejb.test.stateful.BasicStatefulHome</home>
<remote>org.apache.openejb.test.stateful.BasicStatefulObject</remote>
<ejb-link>BasicStatefulBean</ejb-link>
- </ejb-ref>
+ </ejb-ref>
<security-role-ref>
<role-name>BigWig</role-name>
<role-link>Teller</role-link>
@@ -597,15 +787,15 @@
<res-auth>Container</res-auth>
</resource-ref>
</session>
-
- <!--
+
+ <!--
########################################################
ID: client/tools/DatabaseHome
########################################################
-->
-
+
<session>
- <description>A basic stateless session bean with bean-managed
+ <description>A basic stateless session bean with bean-managed
transaction demarcation.
</description>
<ejb-name>DatabaseBean</ejb-name>
@@ -628,15 +818,15 @@
<res-auth>Container</res-auth>
</resource-ref>
</session>
-
- <!--
+
+ <!--
########################################################
ID: client/tests/stateless/BeanManagedTransactionTests/EJBHome
########################################################
-->
-
+
<session>
- <description>A basic stateless session bean with bean-managed
+ <description>A basic stateless session bean with bean-managed
transaction demarcation.
</description>
<ejb-name>BMT StatelessBean</ejb-name>
@@ -659,13 +849,13 @@
<res-auth>Container</res-auth>
</resource-ref>
</session>
-
- <!--
+
+ <!--
########################################################
ID: client/tests/stateless/EncBean
########################################################
-->
-
+
<session>
<description>
The stateless bean for the JNDI ENC tests
@@ -676,8 +866,8 @@
<ejb-class>org.apache.openejb.test.stateless.EncStatelessBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Bean</transaction-type>
-
-
+
+
<env-entry>
<env-entry-name>stateless/references/JNDI_access_to_java_comp_env</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
@@ -729,33 +919,33 @@
<env-entry-value>D</env-entry-value>
</env-entry>
<ejb-ref>
- <ejb-ref-name>stateless/beanReferences/Enterprise_bean_access</ejb-ref-name>
+ <ejb-ref-name>stateless/beanReferences/Enterprise_bean_access</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>org.apache.openejb.test.stateful.BasicStatefulHome</home>
<remote>org.apache.openejb.test.stateful.BasicStatefulObject</remote>
<ejb-link>BasicStatefulBean</ejb-link>
- </ejb-ref>
- <ejb-ref>
- <ejb-ref-name>stateless/beanReferences/bmp_entity</ejb-ref-name>
+ </ejb-ref>
+ <ejb-ref>
+ <ejb-ref-name>stateless/beanReferences/bmp_entity</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<home>org.apache.openejb.test.entity.bmp.BasicBmpHome</home>
<remote>org.apache.openejb.test.entity.bmp.BasicBmpObject</remote>
<ejb-link>BasicBmpBean</ejb-link>
- </ejb-ref>
- <ejb-ref>
- <ejb-ref-name>stateless/beanReferences/stateful</ejb-ref-name>
+ </ejb-ref>
+ <ejb-ref>
+ <ejb-ref-name>stateless/beanReferences/stateful</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>org.apache.openejb.test.stateful.BasicStatefulHome</home>
<remote>org.apache.openejb.test.stateful.BasicStatefulObject</remote>
<ejb-link>BasicStatefulBean</ejb-link>
- </ejb-ref>
- <ejb-ref>
- <ejb-ref-name>stateless/beanReferences/stateless</ejb-ref-name>
+ </ejb-ref>
+ <ejb-ref>
+ <ejb-ref-name>stateless/beanReferences/stateless</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>org.apache.openejb.test.stateless.BasicStatelessHome</home>
<remote>org.apache.openejb.test.stateless.BasicStatelessObject</remote>
<ejb-link>BasicStatelessBean</ejb-link>
- </ejb-ref>
+ </ejb-ref>
<security-role-ref>
<role-name>TheMan</role-name>
<role-link>Executive</role-link>
@@ -766,13 +956,120 @@
<res-auth>Container</res-auth>
</resource-ref>
</session>
-
- <!--
+
+ <!--
+ ########################################################
+ ID: client/tests/stateless/ContextLookupStatelessBean
+ ########################################################
+ -->
+
+ <session>
+ <description>
+ The stateless bean for the JNDI ENC tests
+ </description>
+ <ejb-name>ContextLookupStatelessBean</ejb-name>
+ <home>org.apache.openejb.test.stateless.EncStatelessHome</home>
+ <remote>org.apache.openejb.test.stateless.EncStatelessObject</remote>
+ <ejb-class>org.apache.openejb.test.stateless.ContextLookupStatelessBean</ejb-class>
+ <session-type>Stateless</session-type>
+ <transaction-type>Bean</transaction-type>
+
+
+ <env-entry>
+ <env-entry-name>stateless/references/JNDI_access_to_java_comp_env</env-entry-name>
+ <env-entry-type>java.lang.String</env-entry-type>
+ <env-entry-value>Success</env-entry-value>
+ </env-entry>
+ <env-entry>
+ <env-entry-name>stateless/references/Boolean</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>stateless/references/String</env-entry-name>
+ <env-entry-type>java.lang.String</env-entry-type>
+ <env-entry-value>1</env-entry-value>
+ </env-entry>
+ <env-entry>
+ <env-entry-name>stateless/references/Double</env-entry-name>
+ <env-entry-type>java.lang.Double</env-entry-type>
+ <env-entry-value>1</env-entry-value>
+ </env-entry>
+ <env-entry>
+ <env-entry-name>stateless/references/Long</env-entry-name>
+ <env-entry-type>java.lang.Long</env-entry-type>
+ <env-entry-value>1</env-entry-value>
+ </env-entry>
+ <env-entry>
+ <env-entry-name>stateless/references/Float</env-entry-name>
+ <env-entry-type>java.lang.Float</env-entry-type>
+ <env-entry-value>1</env-entry-value>
+ </env-entry>
+ <env-entry>
+ <env-entry-name>stateless/references/Integer</env-entry-name>
+ <env-entry-type>java.lang.Integer</env-entry-type>
+ <env-entry-value>1</env-entry-value>
+ </env-entry>
+ <env-entry>
+ <env-entry-name>stateless/references/Short</env-entry-name>
+ <env-entry-type>java.lang.Short</env-entry-type>
+ <env-entry-value>1</env-entry-value>
+ </env-entry>
+ <env-entry>
+ <env-entry-name>stateless/references/Byte</env-entry-name>
+ <env-entry-type>java.lang.Byte</env-entry-type>
+ <env-entry-value>1</env-entry-value>
+ </env-entry>
+ <env-entry>
+ <env-entry-name>stateless/references/Character</env-entry-name>
+ <env-entry-type>java.lang.Character</env-entry-type>
+ <env-entry-value>D</env-entry-value>
+ </env-entry>
+ <ejb-ref>
+ <ejb-ref-name>stateless/beanReferences/Enterprise_bean_access</ejb-ref-name>
+ <ejb-ref-type>Session</ejb-ref-type>
+ <home>org.apache.openejb.test.stateful.BasicStatefulHome</home>
+ <remote>org.apache.openejb.test.stateful.BasicStatefulObject</remote>
+ <ejb-link>BasicStatefulBean</ejb-link>
+ </ejb-ref>
+ <ejb-ref>
+ <ejb-ref-name>stateless/beanReferences/bmp_entity</ejb-ref-name>
+ <ejb-ref-type>Entity</ejb-ref-type>
+ <home>org.apache.openejb.test.entity.bmp.BasicBmpHome</home>
+ <remote>org.apache.openejb.test.entity.bmp.BasicBmpObject</remote>
+ <ejb-link>BasicBmpBean</ejb-link>
+ </ejb-ref>
+ <ejb-ref>
+ <ejb-ref-name>stateless/beanReferences/stateful</ejb-ref-name>
+ <ejb-ref-type>Session</ejb-ref-type>
+ <home>org.apache.openejb.test.stateful.BasicStatefulHome</home>
+ <remote>org.apache.openejb.test.stateful.BasicStatefulObject</remote>
+ <ejb-link>BasicStatefulBean</ejb-link>
+ </ejb-ref>
+ <ejb-ref>
+ <ejb-ref-name>stateless/beanReferences/stateless</ejb-ref-name>
+ <ejb-ref-type>Session</ejb-ref-type>
+ <home>org.apache.openejb.test.stateless.BasicStatelessHome</home>
+ <remote>org.apache.openejb.test.stateless.BasicStatelessObject</remote>
+ <ejb-link>BasicStatelessBean</ejb-link>
+ </ejb-ref>
+ <security-role-ref>
+ <role-name>TheMan</role-name>
+ <role-link>Executive</role-link>
+ </security-role-ref>
+ <resource-ref>
+ <res-ref-name>datasource</res-ref-name>
+ <res-type>javax.sql.DataSource</res-type>
+ <res-auth>Container</res-auth>
+ </resource-ref>
+ </session>
+
+ <!--
########################################################
ID: client/tests/stateless/RMI-over-IIOP/EJBHome
########################################################
-->
-
+
<session>
<description>
The stateless bean for the RMI-IIOP Tests
@@ -783,33 +1080,33 @@
<ejb-class>org.apache.openejb.test.stateless.RmiIiopStatelessBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Bean</transaction-type>
- <ejb-ref>
- <ejb-ref-name>stateless/rmi-iiop/home</ejb-ref-name>
+ <ejb-ref>
+ <ejb-ref-name>stateless/rmi-iiop/home</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>org.apache.openejb.test.stateless.EncStatelessHome</home>
<remote>org.apache.openejb.test.stateless.EncStatelessBean</remote>
<ejb-link>EncStatelessBean</ejb-link>
- </ejb-ref>
+ </ejb-ref>
<security-role-ref>
<role-name>TheMan</role-name>
<role-link>Executive</role-link>
</security-role-ref>
</session>
-
- <!--
+
+ <!--
########################################################
########################################################
###### BMP E N T I T Y B E A N S #################
########################################################
########################################################
-->
-
- <!--
+
+ <!--
########################################################
ID: client/tests/entity/bmp/BasicBmpHome
########################################################
-->
-
+
<entity>
<description>
The EmployeeRecord entity bean encapsulates access
@@ -836,12 +1133,12 @@
</resource-ref>
</entity>
- <!--
+ <!--
########################################################
ID: client/tests/entity/bmp/allowed_operations/EntityHome
########################################################
-->
-
+
<entity>
<description>
blah, blah, blah
@@ -859,13 +1156,13 @@
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>Success</env-entry-value>
</env-entry>
- <ejb-ref>
- <ejb-ref-name>stateless/beanReferences/Enterprise_bean_access</ejb-ref-name>
+ <ejb-ref>
+ <ejb-ref-name>stateless/beanReferences/Enterprise_bean_access</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>org.apache.openejb.test.stateful.BasicStatefulHome</home>
<remote>org.apache.openejb.test.stateful.BasicStatefulObject</remote>
<ejb-link>BasicStatefulBean</ejb-link>
- </ejb-ref>
+ </ejb-ref>
<resource-ref>
<description>
This is a reference to a JDBC database.
@@ -884,12 +1181,12 @@
</resource-ref>
</entity>
- <!--
+ <!--
########################################################
ID: client/tests/entity/bmp/EncBean
########################################################
-->
-
+
<entity>
<description>
blah, blah, blah
@@ -948,26 +1245,122 @@
<env-entry-value>D</env-entry-value>
</env-entry>
<ejb-ref>
- <ejb-ref-name>entity/bmp/beanReferences/bmp_entity</ejb-ref-name>
+ <ejb-ref-name>entity/bmp/beanReferences/bmp_entity</ejb-ref-name>
+ <ejb-ref-type>Entity</ejb-ref-type>
+ <home>org.apache.openejb.test.entity.bmp.BasicBmpHome</home>
+ <remote>org.apache.openejb.test.entity.bmp.BasicBmpObject</remote>
+ <ejb-link>BasicBmpBean</ejb-link>
+ </ejb-ref>
+ <ejb-ref>
+ <ejb-ref-name>entity/bmp/beanReferences/stateful</ejb-ref-name>
+ <ejb-ref-type>Session</ejb-ref-type>
+ <home>org.apache.openejb.test.stateful.BasicStatefulHome</home>
+ <remote>org.apache.openejb.test.stateful.BasicStatefulObject</remote>
+ <ejb-link>BasicStatefulBean</ejb-link>
+ </ejb-ref>
+ <ejb-ref>
+ <ejb-ref-name>entity/bmp/beanReferences/stateless</ejb-ref-name>
+ <ejb-ref-type>Session</ejb-ref-type>
+ <home>org.apache.openejb.test.stateless.BasicStatelessHome</home>
+ <remote>org.apache.openejb.test.stateless.BasicStatelessObject</remote>
+ <ejb-link>BasicStatelessBean</ejb-link>
+ </ejb-ref>
+ <resource-ref>
+ <res-ref-name>datasource</res-ref-name>
+ <res-type>javax.sql.DataSource</res-type>
+ <res-auth>Container</res-auth>
+ </resource-ref>
+ <resource-ref>
+ <res-ref-name>jdbc/basic/entityDatabase</res-ref-name>
+ <res-type>javax.sql.DataSource</res-type>
+ <res-auth>Container</res-auth>
+ </resource-ref>
+ </entity>
+
+ <!--
+ ########################################################
+ ID: client/tests/entity/bmp/ContextLookupBmpBean
+ ########################################################
+ -->
+
+ <entity>
+ <description>
+ blah, blah, blah
+ </description>
+ <ejb-name>ContextLookupBmpBean</ejb-name>
+ <home>org.apache.openejb.test.entity.bmp.EncBmpHome</home>
+ <remote>org.apache.openejb.test.entity.bmp.EncBmpObject</remote>
+ <ejb-class>org.apache.openejb.test.entity.bmp.ContextLookupBmpBean</ejb-class>
+ <persistence-type>Bean</persistence-type>
+ <prim-key-class>java.lang.Integer</prim-key-class>
+ <reentrant>False</reentrant>
+ <primkey-field>primaryKey</primkey-field>
+ <env-entry>
+ <env-entry-name>entity/bmp/references/Boolean</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>entity/bmp/references/String</env-entry-name>
+ <env-entry-type>java.lang.String</env-entry-type>
+ <env-entry-value>1</env-entry-value>
+ </env-entry>
+ <env-entry>
+ <env-entry-name>entity/bmp/references/Double</env-entry-name>
+ <env-entry-type>java.lang.Double</env-entry-type>
+ <env-entry-value>1</env-entry-value>
+ </env-entry>
+ <env-entry>
+ <env-entry-name>entity/bmp/references/Long</env-entry-name>
+ <env-entry-type>java.lang.Long</env-entry-type>
+ <env-entry-value>1</env-entry-value>
+ </env-entry>
+ <env-entry>
+ <env-entry-name>entity/bmp/references/Float</env-entry-name>
+ <env-entry-type>java.lang.Float</env-entry-type>
+ <env-entry-value>1</env-entry-value>
+ </env-entry>
+ <env-entry>
+ <env-entry-name>entity/bmp/references/Integer</env-entry-name>
+ <env-entry-type>java.lang.Integer</env-entry-type>
+ <env-entry-value>1</env-entry-value>
+ </env-entry>
+ <env-entry>
+ <env-entry-name>entity/bmp/references/Short</env-entry-name>
+ <env-entry-type>java.lang.Short</env-entry-type>
+ <env-entry-value>1</env-entry-value>
+ </env-entry>
+ <env-entry>
+ <env-entry-name>entity/bmp/references/Byte</env-entry-name>
+ <env-entry-type>java.lang.Byte</env-entry-type>
+ <env-entry-value>1</env-entry-value>
+ </env-entry>
+ <env-entry>
+ <env-entry-name>entity/bmp/references/Character</env-entry-name>
+ <env-entry-type>java.lang.Character</env-entry-type>
+ <env-entry-value>D</env-entry-value>
+ </env-entry>
+ <ejb-ref>
+ <ejb-ref-name>entity/bmp/beanReferences/bmp_entity</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<home>org.apache.openejb.test.entity.bmp.BasicBmpHome</home>
<remote>org.apache.openejb.test.entity.bmp.BasicBmpObject</remote>
<ejb-link>BasicBmpBean</ejb-link>
- </ejb-ref>
- <ejb-ref>
- <ejb-ref-name>entity/bmp/beanReferences/stateful</ejb-ref-name>
+ </ejb-ref>
+ <ejb-ref>
+ <ejb-ref-name>entity/bmp/beanReferences/stateful</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>org.apache.openejb.test.stateful.BasicStatefulHome</home>
<remote>org.apache.openejb.test.stateful.BasicStatefulObject</remote>
<ejb-link>BasicStatefulBean</ejb-link>
- </ejb-ref>
- <ejb-ref>
- <ejb-ref-name>entity/bmp/beanReferences/stateless</ejb-ref-name>
+ </ejb-ref>
+ <ejb-ref>
+ <ejb-ref-name>entity/bmp/beanReferences/stateless</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>org.apache.openejb.test.stateless.BasicStatelessHome</home>
<remote>org.apache.openejb.test.stateless.BasicStatelessObject</remote>
<ejb-link>BasicStatelessBean</ejb-link>
- </ejb-ref>
+ </ejb-ref>
<resource-ref>
<res-ref-name>datasource</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
@@ -980,12 +1373,12 @@
</resource-ref>
</entity>
- <!--
+ <!--
########################################################
ID: client/tests/entity/bmp/RMI-over-IIOP/EJBHome
########################################################
-->
-
+
<entity>
<description>
blah, blah, blah
@@ -998,20 +1391,20 @@
<prim-key-class>java.lang.Integer</prim-key-class>
<reentrant>False</reentrant>
<primkey-field>primaryKey</primkey-field>
- <ejb-ref>
- <ejb-ref-name>bmp/rmi-iiop/home</ejb-ref-name>
- <ejb-ref-type>Entity</ejb-ref-type>
+ <ejb-ref>
+ <ejb-ref-name>bmp/rmi-iiop/home</ejb-ref-name>
+ <ejb-ref-type>Entity</ejb-ref-type>
<home>org.apache.openejb.test.entity.bmp.EncBmpHome</home>
<remote>org.apache.openejb.test.entity.bmp.EncBmpObject</remote>
<ejb-link>EncBmpBean</ejb-link>
- </ejb-ref>
+ </ejb-ref>
<security-role-ref>
<role-name>TheMan</role-name>
<role-link>Executive</role-link>
</security-role-ref>
</entity>
</enterprise-beans>
-
+
<assembly-descriptor>
<security-role>
<description>The description</description>
@@ -1029,7 +1422,7 @@
<description>The description</description>
<role-name>Executive</role-name>
</security-role>
-
+
<method-permission>
<description>The description</description>
<role-name>Teller</role-name>
@@ -1039,7 +1432,7 @@
<method-name>remove</method-name>
</method>
</method-permission>
-
+
<method-permission>
<description>The description</description>
<role-name>Accountant</role-name>
Modified: incubator/openejb/trunk/openejb3/itests/openejb-itests-beans/src/main/resources/META-INF/jpa.mapping.xml
URL: http://svn.apache.org/viewvc/incubator/openejb/trunk/openejb3/itests/openejb-itests-beans/src/main/resources/META-INF/jpa.mapping.xml?view=diff&rev=483409&r1=483408&r2=483409
==============================================================================
--- incubator/openejb/trunk/openejb3/itests/openejb-itests-beans/src/main/resources/META-INF/jpa.mapping.xml (original)
+++ incubator/openejb/trunk/openejb3/itests/openejb-itests-beans/src/main/resources/META-INF/jpa.mapping.xml Thu Dec 7 02:43:45 2006
@@ -57,6 +57,24 @@
</attributes>
</entity>
+ <entity class="org.apache.openejb.test.entity.cmp.ContextLookupCmpBean">
+ <description>Simple Entity Bean</description>
+
+ <table name="entity"/>
+
+ <attributes>
+ <id name="primaryKey">
+ <column name="id"/>
+ </id>
+ <basic name="firstName">
+ <column name="first_name"/>
+ </basic>
+ <basic name="lastName">
+ <column name="last_name"/>
+ </basic>
+ </attributes>
+ </entity>
+
<entity class="org.apache.openejb.test.entity.cmp.RmiIiopCmpBean">
<description>Simple Entity Bean</description>
Modified: incubator/openejb/trunk/openejb3/itests/openejb-itests-beans/src/main/resources/META-INF/openejb-jar.xml
URL: http://svn.apache.org/viewvc/incubator/openejb/trunk/openejb3/itests/openejb-itests-beans/src/main/resources/META-INF/openejb-jar.xml?view=diff&rev=483409&r1=483408&r2=483409
==============================================================================
--- incubator/openejb/trunk/openejb3/itests/openejb-itests-beans/src/main/resources/META-INF/openejb-jar.xml (original)
+++ incubator/openejb/trunk/openejb3/itests/openejb-itests-beans/src/main/resources/META-INF/openejb-jar.xml Thu Dec 7 02:43:45 2006
@@ -67,6 +67,10 @@
<resource-link res-ref-name="datasource" res-id="Default JDBC Database"/>
<resource-link res-ref-name="jdbc/basic/entityDatabase" res-id="Default JDBC Database"/>
</ejb-deployment>
+ <ejb-deployment ejb-name="ContextLookupCmpBean" deployment-id="client/tests/entity/cmp/ContextLookupCmpBean" container-id="Default CMP Container">
+ <resource-link res-ref-name="datasource" res-id="Default JDBC Database"/>
+ <resource-link res-ref-name="jdbc/basic/entityDatabase" res-id="Default JDBC Database"/>
+ </ejb-deployment>
<ejb-deployment ejb-name="Cmp RMI-IIOP Bean" deployment-id="client/tests/entity/cmp/RMI-over-IIOP/EJBHome" container-id="Default CMP Container"/>
<ejb-deployment ejb-name="BasicStatefulBean" deployment-id="client/tests/stateful/BasicStatefulHome" container-id="Default Stateful Container"/>
<ejb-deployment ejb-name="BasicStatefulPojoBean" deployment-id="client/tests/stateful/BasicStatefulPojoHome" container-id="Default Stateful Container"/>
@@ -77,6 +81,9 @@
<ejb-deployment ejb-name="EncStatefulBean" deployment-id="client/tests/stateful/EncBean" container-id="Default Stateful Container">
<resource-link res-ref-name="datasource" res-id="Default JDBC Database"/>
</ejb-deployment>
+ <ejb-deployment ejb-name="ContextLookupStatefulBean" deployment-id="client/tests/stateful/ContextLookupStatefulBean" container-id="Default Stateful Container">
+ <resource-link res-ref-name="datasource" res-id="Default JDBC Database"/>
+ </ejb-deployment>
<ejb-deployment ejb-name="Stateful RMI-IIOP Bean" deployment-id="client/tests/stateful/RMI-over-IIOP/EJBHome" container-id="Default Stateful Container"/>
<ejb-deployment ejb-name="BasicStatelessBean" deployment-id="client/tests/stateless/BasicStatelessHome" container-id="Default Stateless Container">
<resource-link res-ref-name="stateless/references/Resource_manager_access" res-id="Default JDBC Database"/>
@@ -96,6 +103,9 @@
<ejb-deployment ejb-name="EncStatelessBean" deployment-id="client/tests/stateless/EncBean" container-id="Default Stateless Container">
<resource-link res-ref-name="datasource" res-id="Default JDBC Database"/>
</ejb-deployment>
+ <ejb-deployment ejb-name="ContextLookupStatelessBean" deployment-id="client/tests/stateless/ContextLookupStatelessBean" container-id="Default Stateless Container">
+ <resource-link res-ref-name="datasource" res-id="Default JDBC Database"/>
+ </ejb-deployment>
<ejb-deployment ejb-name="Stateless RMI-IIOP Bean" deployment-id="client/tests/stateless/RMI-over-IIOP/EJBHome" container-id="Default Stateless Container"/>
<ejb-deployment ejb-name="BasicBmpBean" deployment-id="client/tests/entity/bmp/BasicBmpHome" container-id="Default BMP Container">
<resource-link res-ref-name="jdbc/basic/entityDatabase" res-id="Default JDBC Database"/>
@@ -105,6 +115,10 @@
<resource-link res-ref-name="stateless/references/Resource_manager_access" res-id="Default JDBC Database"/>
</ejb-deployment>
<ejb-deployment ejb-name="EncBmpBean" deployment-id="client/tests/entity/bmp/EncBean" container-id="Default BMP Container">
+ <resource-link res-ref-name="datasource" res-id="Default JDBC Database"/>
+ <resource-link res-ref-name="jdbc/basic/entityDatabase" res-id="Default JDBC Database"/>
+ </ejb-deployment>
+ <ejb-deployment ejb-name="ContextLookupBmpBean" deployment-id="client/tests/entity/bmp/ContextLookupBmpBean" container-id="Default BMP Container">
<resource-link res-ref-name="datasource" res-id="Default JDBC Database"/>
<resource-link res-ref-name="jdbc/basic/entityDatabase" res-id="Default JDBC Database"/>
</ejb-deployment>
Added: incubator/openejb/trunk/openejb3/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/entity/bmp/BmpContextLookupTests.java
URL: http://svn.apache.org/viewvc/incubator/openejb/trunk/openejb3/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/entity/bmp/BmpContextLookupTests.java?view=auto&rev=483409
==============================================================================
--- incubator/openejb/trunk/openejb3/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/entity/bmp/BmpContextLookupTests.java (added)
+++ incubator/openejb/trunk/openejb3/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/entity/bmp/BmpContextLookupTests.java Thu Dec 7 02:43:45 2006
@@ -0,0 +1,183 @@
+/**
+ * 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.
+ */
+package org.apache.openejb.test.entity.bmp;
+
+import org.apache.openejb.test.TestFailureException;
+
+/**
+ * [4] Should be run as the fourth test suite of the EncBmpTestClients
+ *
+ * @author <a href="mailto:david.blevins@visi.com">David Blevins</a>
+ * @author <a href="mailto:Richard@Monson-Haefel.com">Richard Monson-Haefel</a>
+ */
+public class BmpContextLookupTests extends BmpTestClient{
+
+ protected EncBmpHome ejbHome;
+ protected EncBmpObject ejbObject;
+
+ public BmpContextLookupTests(){
+ super("JNDI_ENC.");
+ }
+
+ protected void setUp() throws Exception{
+ super.setUp();
+ Object obj = initialContext.lookup("client/tests/entity/bmp/ContextLookupBmpBean");
+ ejbHome = (EncBmpHome)javax.rmi.PortableRemoteObject.narrow( obj, EncBmpHome.class);
+ ejbObject = ejbHome.create("Enc Bean");
+ }
+
+ protected void tearDown() throws Exception {
+ try {
+ //ejbObject.remove();
+ } catch (Exception e){
+ throw e;
+ } finally {
+ super.tearDown();
+ }
+ }
+
+ public void test01_lookupStringEntry() {
+ try{
+ ejbObject.lookupStringEntry();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test02_lookupDoubleEntry() {
+ try{
+ ejbObject.lookupDoubleEntry();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test03_lookupLongEntry() {
+ try{
+ ejbObject.lookupLongEntry();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test04_lookupFloatEntry() {
+ try{
+ ejbObject.lookupFloatEntry();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test05_lookupIntegerEntry() {
+ try{
+ ejbObject.lookupIntegerEntry();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test06_lookupShortEntry() {
+ try{
+ ejbObject.lookupShortEntry();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test07_lookupBooleanEntry() {
+ try{
+ ejbObject.lookupBooleanEntry();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test08_lookupByteEntry() {
+ try{
+ ejbObject.lookupByteEntry();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test09_lookupCharacterEntry() {
+ try{
+ ejbObject.lookupCharacterEntry();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test10_lookupEntityBean() {
+ try{
+ ejbObject.lookupEntityBean();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test11_lookupStatefulBean() {
+ try{
+ ejbObject.lookupStatefulBean();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test12_lookupStatelessBean() {
+ try{
+ ejbObject.lookupStatelessBean();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test13_lookupResource() {
+ try{
+ ejbObject.lookupResource();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+}
Added: incubator/openejb/trunk/openejb3/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/entity/cmp/CmpContextLookupTests.java
URL: http://svn.apache.org/viewvc/incubator/openejb/trunk/openejb3/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/entity/cmp/CmpContextLookupTests.java?view=auto&rev=483409
==============================================================================
--- incubator/openejb/trunk/openejb3/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/entity/cmp/CmpContextLookupTests.java (added)
+++ incubator/openejb/trunk/openejb3/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/entity/cmp/CmpContextLookupTests.java Thu Dec 7 02:43:45 2006
@@ -0,0 +1,183 @@
+/**
+ * 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.
+ */
+package org.apache.openejb.test.entity.cmp;
+
+import org.apache.openejb.test.TestFailureException;
+
+/**
+ * [4] Should be run as the fourth test suite of the EncCmpTestClients
+ *
+ * @author <a href="mailto:david.blevins@visi.com">David Blevins</a>
+ * @author <a href="mailto:Richard@Monson-Haefel.com">Richard Monson-Haefel</a>
+ */
+public class CmpContextLookupTests extends CmpTestClient{
+
+ protected EncCmpHome ejbHome;
+ protected EncCmpObject ejbObject;
+
+ public CmpContextLookupTests(){
+ super("JNDI_ENC.");
+ }
+
+ protected void setUp() throws Exception{
+ super.setUp();
+ Object obj = initialContext.lookup("client/tests/entity/cmp/ContextLookupCmpBean");
+ ejbHome = (EncCmpHome)javax.rmi.PortableRemoteObject.narrow( obj, EncCmpHome.class);
+ ejbObject = ejbHome.create("Enc Bean");
+ }
+
+ protected void tearDown() throws Exception {
+ try {
+ //ejbObject.remove();
+ } catch (Exception e){
+ throw e;
+ } finally {
+ super.tearDown();
+ }
+ }
+
+ public void test01_lookupStringEntry() {
+ try{
+ ejbObject.lookupStringEntry();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test02_lookupDoubleEntry() {
+ try{
+ ejbObject.lookupDoubleEntry();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test03_lookupLongEntry() {
+ try{
+ ejbObject.lookupLongEntry();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test04_lookupFloatEntry() {
+ try{
+ ejbObject.lookupFloatEntry();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test05_lookupIntegerEntry() {
+ try{
+ ejbObject.lookupIntegerEntry();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test06_lookupShortEntry() {
+ try{
+ ejbObject.lookupShortEntry();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test07_lookupBooleanEntry() {
+ try{
+ ejbObject.lookupBooleanEntry();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test08_lookupByteEntry() {
+ try{
+ ejbObject.lookupByteEntry();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test09_lookupCharacterEntry() {
+ try{
+ ejbObject.lookupCharacterEntry();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test10_lookupEntityBean() {
+ try{
+ ejbObject.lookupEntityBean();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test11_lookupStatefulBean() {
+ try{
+ ejbObject.lookupStatefulBean();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test12_lookupStatelessBean() {
+ try{
+ ejbObject.lookupStatelessBean();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test13_lookupResource() {
+ try{
+ ejbObject.lookupResource();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+}
Added: incubator/openejb/trunk/openejb3/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/StatefulContextLookupTests.java
URL: http://svn.apache.org/viewvc/incubator/openejb/trunk/openejb3/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/StatefulContextLookupTests.java?view=auto&rev=483409
==============================================================================
--- incubator/openejb/trunk/openejb3/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/StatefulContextLookupTests.java (added)
+++ incubator/openejb/trunk/openejb3/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/StatefulContextLookupTests.java Thu Dec 7 02:43:45 2006
@@ -0,0 +1,192 @@
+/**
+ * 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.
+ */
+package org.apache.openejb.test.stateful;
+
+import org.apache.openejb.test.TestManager;
+import org.apache.openejb.test.TestFailureException;
+
+/**
+ * [4] Should be run as the fourth test suite of the StatefulTestClients
+ *
+ * @author <a href="mailto:david.blevins@visi.com">David Blevins</a>
+ * @author <a href="mailto:Richard@Monson-Haefel.com">Richard Monson-Haefel</a>
+ */
+public class StatefulContextLookupTests extends StatefulTestClient{
+
+ protected EncStatefulHome ejbHome;
+ protected EncStatefulObject ejbObject;
+
+ public StatefulContextLookupTests(){
+ super("JNDI_ENC.");
+ }
+
+ protected void setUp() throws Exception{
+ super.setUp();
+ Object obj = initialContext.lookup("client/tests/stateful/ContextLookupStatefulBean");
+ ejbHome = (EncStatefulHome)javax.rmi.PortableRemoteObject.narrow( obj, EncStatefulHome.class);
+ ejbObject = ejbHome.create("Enc Bean");
+
+ /*[2] Create database table */
+ TestManager.getDatabase().createEntityTable();
+ }
+
+ /**
+ * Tears down the fixture, for example, close a network connection.
+ * This method is called after a test is executed.
+ */
+ protected void tearDown() throws Exception {
+ try {
+ /*[1] Drop database table */
+ TestManager.getDatabase().dropEntityTable();
+ } catch (Exception e){
+ throw e;
+ } finally {
+ super.tearDown();
+ }
+ }
+
+ public void test01_lookupStringEntry() {
+ try{
+ ejbObject.lookupStringEntry();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test02_lookupDoubleEntry() {
+ try{
+ ejbObject.lookupDoubleEntry();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test03_lookupLongEntry() {
+ try{
+ ejbObject.lookupLongEntry();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test04_lookupFloatEntry() {
+ try{
+ ejbObject.lookupFloatEntry();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test05_lookupIntegerEntry() {
+ try{
+ ejbObject.lookupIntegerEntry();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test06_lookupShortEntry() {
+ try{
+ ejbObject.lookupShortEntry();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test07_lookupBooleanEntry() {
+ try{
+ ejbObject.lookupBooleanEntry();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test08_lookupByteEntry() {
+ try{
+ ejbObject.lookupByteEntry();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test09_lookupCharacterEntry() {
+ try{
+ ejbObject.lookupCharacterEntry();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test10_lookupEntityBean() {
+ try{
+ ejbObject.lookupEntityBean();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test11_lookupStatefulBean() {
+ try{
+ ejbObject.lookupStatefulBean();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test12_lookupStatelessBean() {
+ try{
+ ejbObject.lookupStatelessBean();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test13_lookupResource() {
+ try{
+ ejbObject.lookupResource();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+}
Added: incubator/openejb/trunk/openejb3/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateless/StatelessContextLookupTests.java
URL: http://svn.apache.org/viewvc/incubator/openejb/trunk/openejb3/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateless/StatelessContextLookupTests.java?view=auto&rev=483409
==============================================================================
--- incubator/openejb/trunk/openejb3/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateless/StatelessContextLookupTests.java (added)
+++ incubator/openejb/trunk/openejb3/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateless/StatelessContextLookupTests.java Thu Dec 7 02:43:45 2006
@@ -0,0 +1,191 @@
+/**
+ * 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.
+ */
+package org.apache.openejb.test.stateless;
+
+import org.apache.openejb.test.TestManager;
+import org.apache.openejb.test.TestFailureException;
+
+/**
+ * [4] Should be run as the fourth test suite of the EncStatelessTestClients
+ *
+ * @author <a href="mailto:david.blevins@visi.com">David Blevins</a>
+ * @author <a href="mailto:Richard@Monson-Haefel.com">Richard Monson-Haefel</a>
+ */
+public class StatelessContextLookupTests extends StatelessTestClient{
+
+ protected EncStatelessHome ejbHome;
+ protected EncStatelessObject ejbObject;
+
+ public StatelessContextLookupTests(){
+ super("JNDI_ENC.");
+ }
+
+ protected void setUp() throws Exception{
+ super.setUp();
+ Object obj = initialContext.lookup("client/tests/stateless/ContextLookupStatelessBean");
+ ejbHome = (EncStatelessHome)javax.rmi.PortableRemoteObject.narrow( obj, EncStatelessHome.class);
+ ejbObject = ejbHome.create();
+
+ /*[2] Create database table */
+ TestManager.getDatabase().createEntityTable();
+ }
+
+ /**
+ * Tears down the fixture, for example, close a network connection.
+ * This method is called after a test is executed.
+ */
+ protected void tearDown() throws Exception {
+ try {
+ /*[1] Drop database table */
+ TestManager.getDatabase().dropEntityTable();
+ } catch (Exception e){
+ throw e;
+ } finally {
+ super.tearDown();
+ }
+ }
+
+ public void test01_lookupStringEntry() {
+ try{
+ ejbObject.lookupStringEntry();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test02_lookupDoubleEntry() {
+ try{
+ ejbObject.lookupDoubleEntry();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test03_lookupLongEntry() {
+ try{
+ ejbObject.lookupLongEntry();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test04_lookupFloatEntry() {
+ try{
+ ejbObject.lookupFloatEntry();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test05_lookupIntegerEntry() {
+ try{
+ ejbObject.lookupIntegerEntry();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test06_lookupShortEntry() {
+ try{
+ ejbObject.lookupShortEntry();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test07_lookupBooleanEntry() {
+ try{
+ ejbObject.lookupBooleanEntry();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test08_lookupByteEntry() {
+ try{
+ ejbObject.lookupByteEntry();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test09_lookupCharacterEntry() {
+ try{
+ ejbObject.lookupCharacterEntry();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test10_lookupEntityBean() {
+ try{
+ ejbObject.lookupEntityBean();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test11_lookupStatefulBean() {
+ try{
+ ejbObject.lookupStatefulBean();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test12_lookupStatelessBean() {
+ try{
+ ejbObject.lookupStatelessBean();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test13_lookupResource() {
+ try{
+ ejbObject.lookupResource();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+}