You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by da...@apache.org on 2007/03/06 19:23:24 UTC
svn commit: r515239 [2/2] - in /incubator/openejb/trunk/openejb3:
container/openejb-core/src/main/java/org/apache/openejb/config/
container/openejb-core/src/main/java/org/apache/openejb/core/mdb/
container/openejb-jee/src/main/java/org/apache/openejb/j...
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=515239&r1=515238&r2=515239
==============================================================================
--- 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 Tue Mar 6 10:23:22 2007
@@ -4153,6 +4153,492 @@
</persistence-context-ref>
</message-driven>
+ <message-driven>
+ <ejb-name>FieldInjectionMdbBean</ejb-name>
+ <ejb-class>org.apache.openejb.test.mdb.FieldInjectionMdbBean</ejb-class>
+ <messaging-type>javax.jms.MessageListener</messaging-type>
+ <transaction-type>Bean</transaction-type>
+
+ <message-destination-type>javax.jms.Queue</message-destination-type>
+ <message-destination-link>FieldInjectionMdbBean</message-destination-link>
+ <activation-config>
+ <activation-config-property>
+ <activation-config-property-name>destination</activation-config-property-name>
+ <activation-config-property-value>FieldInjectionMdbBean</activation-config-property-value>
+ </activation-config-property>
+ </activation-config>
+
+ <resource-ref>
+ <res-ref-name>jms</res-ref-name>
+ <res-type>javax.jms.ConnectionFactory</res-type>
+ <res-auth>Container</res-auth>
+ </resource-ref>
+
+ <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>
+ <injection-target>
+ <injection-target-class>org.apache.openejb.test.mdb.FieldInjectionMdbBean</injection-target-class>
+ <injection-target-name>booolean</injection-target-name>
+ </injection-target>
+ </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>
+ <injection-target>
+ <injection-target-class>org.apache.openejb.test.mdb.FieldInjectionMdbBean</injection-target-class>
+ <injection-target-name>striing</injection-target-name>
+ </injection-target>
+ </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>
+ <injection-target>
+ <injection-target-class>org.apache.openejb.test.mdb.FieldInjectionMdbBean</injection-target-class>
+ <injection-target-name>doouble</injection-target-name>
+ </injection-target>
+ </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>
+ <injection-target>
+ <injection-target-class>org.apache.openejb.test.mdb.FieldInjectionMdbBean</injection-target-class>
+ <injection-target-name>loong</injection-target-name>
+ </injection-target>
+ </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>
+ <injection-target>
+ <injection-target-class>org.apache.openejb.test.mdb.FieldInjectionMdbBean</injection-target-class>
+ <injection-target-name>flooat</injection-target-name>
+ </injection-target>
+ </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>
+ <injection-target>
+ <injection-target-class>org.apache.openejb.test.mdb.FieldInjectionMdbBean</injection-target-class>
+ <injection-target-name>inteeger</injection-target-name>
+ </injection-target>
+ </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>
+ <injection-target>
+ <injection-target-class>org.apache.openejb.test.mdb.FieldInjectionMdbBean</injection-target-class>
+ <injection-target-name>shoort</injection-target-name>
+ </injection-target>
+ </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>
+ <injection-target>
+ <injection-target-class>org.apache.openejb.test.mdb.FieldInjectionMdbBean</injection-target-class>
+ <injection-target-name>byyte</injection-target-name>
+ </injection-target>
+ </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>
+ <injection-target>
+ <injection-target-class>org.apache.openejb.test.mdb.FieldInjectionMdbBean</injection-target-class>
+ <injection-target-name>chaaracter</injection-target-name>
+ </injection-target>
+ </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>
+ <injection-target>
+ <injection-target-class>org.apache.openejb.test.mdb.FieldInjectionMdbBean</injection-target-class>
+ <injection-target-name>bmpHome</injection-target-name>
+ </injection-target>
+ </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>
+ <injection-target>
+ <injection-target-class>org.apache.openejb.test.mdb.FieldInjectionMdbBean</injection-target-class>
+ <injection-target-name>statefulHome</injection-target-name>
+ </injection-target>
+ </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>
+ <injection-target>
+ <injection-target-class>org.apache.openejb.test.mdb.FieldInjectionMdbBean</injection-target-class>
+ <injection-target-name>statelessHome</injection-target-name>
+ </injection-target>
+ </ejb-ref>
+ <ejb-local-ref>
+ <ejb-ref-name>stateful/beanReferences/stateless-business-local</ejb-ref-name>
+ <ejb-ref-type>Session</ejb-ref-type>
+ <local>org.apache.openejb.test.stateless.BasicStatelessBusinessLocal</local>
+ <ejb-link>BasicStatelessPojoBean</ejb-link>
+ <injection-target>
+ <injection-target-class>org.apache.openejb.test.mdb.FieldInjectionMdbBean</injection-target-class>
+ <injection-target-name>statelessBusinessLocal</injection-target-name>
+ </injection-target>
+ </ejb-local-ref>
+ <ejb-ref>
+ <ejb-ref-name>stateful/beanReferences/stateless-business-remote</ejb-ref-name>
+ <ejb-ref-type>Session</ejb-ref-type>
+ <remote>org.apache.openejb.test.stateless.BasicStatelessBusinessRemote</remote>
+ <ejb-link>BasicStatelessPojoBean</ejb-link>
+ <injection-target>
+ <injection-target-class>org.apache.openejb.test.mdb.FieldInjectionMdbBean</injection-target-class>
+ <injection-target-name>statelessBusinessRemote</injection-target-name>
+ </injection-target>
+ </ejb-ref>
+ <ejb-local-ref>
+ <ejb-ref-name>stateful/beanReferences/stateful-business-local</ejb-ref-name>
+ <ejb-ref-type>Session</ejb-ref-type>
+ <local>org.apache.openejb.test.stateful.BasicStatefulBusinessLocal</local>
+ <ejb-link>BasicStatefulPojoBean</ejb-link>
+ <injection-target>
+ <injection-target-class>org.apache.openejb.test.mdb.FieldInjectionMdbBean</injection-target-class>
+ <injection-target-name>statefulBusinessLocal</injection-target-name>
+ </injection-target>
+ </ejb-local-ref>
+ <ejb-ref>
+ <ejb-ref-name>stateful/beanReferences/stateful-business-remote</ejb-ref-name>
+ <ejb-ref-type>Session</ejb-ref-type>
+ <remote>org.apache.openejb.test.stateful.BasicStatefulBusinessRemote</remote>
+ <ejb-link>BasicStatefulPojoBean</ejb-link>
+ <injection-target>
+ <injection-target-class>org.apache.openejb.test.mdb.FieldInjectionMdbBean</injection-target-class>
+ <injection-target-name>statefulBusinessRemote</injection-target-name>
+ </injection-target>
+ </ejb-ref>
+ <resource-ref>
+ <res-ref-name>datasource</res-ref-name>
+ <res-type>javax.sql.DataSource</res-type>
+ <res-auth>Container</res-auth>
+ <injection-target>
+ <injection-target-class>org.apache.openejb.test.mdb.FieldInjectionMdbBean</injection-target-class>
+ <injection-target-name>daataSource</injection-target-name>
+ </injection-target>
+ </resource-ref>
+ <resource-ref>
+ <res-ref-name>connectionFactory</res-ref-name>
+ <res-type>javax.jms.ConnectionFactory</res-type>
+ <res-auth>Container</res-auth>
+ <injection-target>
+ <injection-target-class>org.apache.openejb.test.mdb.FieldInjectionMdbBean</injection-target-class>
+ <injection-target-name>coonnectionFactory</injection-target-name>
+ </injection-target>
+ </resource-ref>
+ <resource-ref>
+ <res-ref-name>queueConnectionFactory</res-ref-name>
+ <res-type>javax.jms.QueueConnectionFactory</res-type>
+ <res-auth>Container</res-auth>
+ <injection-target>
+ <injection-target-class>org.apache.openejb.test.mdb.FieldInjectionMdbBean</injection-target-class>
+ <injection-target-name>queueCoonnectionFactory</injection-target-name>
+ </injection-target>
+ </resource-ref>
+ <resource-ref>
+ <res-ref-name>topicConnectionFactory</res-ref-name>
+ <res-type>javax.jms.TopicConnectionFactory</res-type>
+ <res-auth>Container</res-auth>
+ <injection-target>
+ <injection-target-class>org.apache.openejb.test.mdb.FieldInjectionMdbBean</injection-target-class>
+ <injection-target-name>topicCoonnectionFactory</injection-target-name>
+ </injection-target>
+ </resource-ref>
+ <resource-env-ref>
+ <resource-env-ref-name>sessioncontext</resource-env-ref-name>
+ <resource-env-ref-type>javax.ejb.SessionContext</resource-env-ref-type>
+ <injection-target>
+ <injection-target-class>org.apache.openejb.test.mdb.FieldInjectionMdbBean</injection-target-class>
+ <injection-target-name>ejbContext</injection-target-name>
+ </injection-target>
+ </resource-env-ref>
+ <persistence-unit-ref>
+ <description>
+ Persistence unit for testing the functionality.
+ </description>
+ <persistence-unit-ref-name>persistence/TestUnit</persistence-unit-ref-name>
+ <persistence-unit-name>openjpa-test-unit</persistence-unit-name>
+ <injection-target>
+ <injection-target-class>org.apache.openejb.test.mdb.FieldInjectionMdbBean</injection-target-class>
+ <injection-target-name>emf</injection-target-name>
+ </injection-target>
+ </persistence-unit-ref>
+ <persistence-context-ref>
+ <description>
+ Persistence context for testing the functionality.
+ </description>
+ <persistence-context-ref-name>persistence/TestContext</persistence-context-ref-name>
+ <persistence-unit-name>openjpa-test-unit</persistence-unit-name>
+ <injection-target>
+ <injection-target-class>org.apache.openejb.test.mdb.FieldInjectionMdbBean</injection-target-class>
+ <injection-target-name>em</injection-target-name>
+ </injection-target>
+ </persistence-context-ref>
+ </message-driven>
+
+ <message-driven>
+ <ejb-name>SetterInjectionMdbBean</ejb-name>
+ <ejb-class>org.apache.openejb.test.mdb.SetterInjectionMdbBean</ejb-class>
+ <messaging-type>javax.jms.MessageListener</messaging-type>
+ <transaction-type>Bean</transaction-type>
+
+ <message-destination-type>javax.jms.Queue</message-destination-type>
+ <message-destination-link>SetterInjectionMdbBean</message-destination-link>
+ <activation-config>
+ <activation-config-property>
+ <activation-config-property-name>destination</activation-config-property-name>
+ <activation-config-property-value>SetterInjectionMdbBean</activation-config-property-value>
+ </activation-config-property>
+ </activation-config>
+
+ <resource-ref>
+ <res-ref-name>jms</res-ref-name>
+ <res-type>javax.jms.ConnectionFactory</res-type>
+ <res-auth>Container</res-auth>
+ </resource-ref>
+
+ <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>
+ <injection-target>
+ <injection-target-class>org.apache.openejb.test.mdb.SetterInjectionMdbBean</injection-target-class>
+ <injection-target-name>booolean</injection-target-name>
+ </injection-target>
+ </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>
+ <injection-target>
+ <injection-target-class>org.apache.openejb.test.mdb.SetterInjectionMdbBean</injection-target-class>
+ <injection-target-name>striing</injection-target-name>
+ </injection-target>
+ </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>
+ <injection-target>
+ <injection-target-class>org.apache.openejb.test.mdb.SetterInjectionMdbBean</injection-target-class>
+ <injection-target-name>doouble</injection-target-name>
+ </injection-target>
+ </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>
+ <injection-target>
+ <injection-target-class>org.apache.openejb.test.mdb.SetterInjectionMdbBean</injection-target-class>
+ <injection-target-name>loong</injection-target-name>
+ </injection-target>
+ </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>
+ <injection-target>
+ <injection-target-class>org.apache.openejb.test.mdb.SetterInjectionMdbBean</injection-target-class>
+ <injection-target-name>flooat</injection-target-name>
+ </injection-target>
+ </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>
+ <injection-target>
+ <injection-target-class>org.apache.openejb.test.mdb.SetterInjectionMdbBean</injection-target-class>
+ <injection-target-name>inteeger</injection-target-name>
+ </injection-target>
+ </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>
+ <injection-target>
+ <injection-target-class>org.apache.openejb.test.mdb.SetterInjectionMdbBean</injection-target-class>
+ <injection-target-name>shoort</injection-target-name>
+ </injection-target>
+ </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>
+ <injection-target>
+ <injection-target-class>org.apache.openejb.test.mdb.SetterInjectionMdbBean</injection-target-class>
+ <injection-target-name>byyte</injection-target-name>
+ </injection-target>
+ </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>
+ <injection-target>
+ <injection-target-class>org.apache.openejb.test.mdb.SetterInjectionMdbBean</injection-target-class>
+ <injection-target-name>chaaracter</injection-target-name>
+ </injection-target>
+ </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>
+ <injection-target>
+ <injection-target-class>org.apache.openejb.test.mdb.SetterInjectionMdbBean</injection-target-class>
+ <injection-target-name>bmpHome</injection-target-name>
+ </injection-target>
+ </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>
+ <injection-target>
+ <injection-target-class>org.apache.openejb.test.mdb.SetterInjectionMdbBean</injection-target-class>
+ <injection-target-name>statefulHome</injection-target-name>
+ </injection-target>
+ </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>
+ <injection-target>
+ <injection-target-class>org.apache.openejb.test.mdb.SetterInjectionMdbBean</injection-target-class>
+ <injection-target-name>statelessHome</injection-target-name>
+ </injection-target>
+ </ejb-ref>
+ <ejb-local-ref>
+ <ejb-ref-name>stateful/beanReferences/stateless-business-local</ejb-ref-name>
+ <ejb-ref-type>Session</ejb-ref-type>
+ <local>org.apache.openejb.test.stateless.BasicStatelessBusinessLocal</local>
+ <ejb-link>BasicStatelessPojoBean</ejb-link>
+ <injection-target>
+ <injection-target-class>org.apache.openejb.test.mdb.SetterInjectionMdbBean</injection-target-class>
+ <injection-target-name>statelessBusinessLocal</injection-target-name>
+ </injection-target>
+ </ejb-local-ref>
+ <ejb-ref>
+ <ejb-ref-name>stateful/beanReferences/stateless-business-remote</ejb-ref-name>
+ <ejb-ref-type>Session</ejb-ref-type>
+ <remote>org.apache.openejb.test.stateless.BasicStatelessBusinessRemote</remote>
+ <ejb-link>BasicStatelessPojoBean</ejb-link>
+ <injection-target>
+ <injection-target-class>org.apache.openejb.test.mdb.SetterInjectionMdbBean</injection-target-class>
+ <injection-target-name>statelessBusinessRemote</injection-target-name>
+ </injection-target>
+ </ejb-ref>
+ <ejb-local-ref>
+ <ejb-ref-name>stateful/beanReferences/stateful-business-local</ejb-ref-name>
+ <ejb-ref-type>Session</ejb-ref-type>
+ <local>org.apache.openejb.test.stateful.BasicStatefulBusinessLocal</local>
+ <ejb-link>BasicStatefulPojoBean</ejb-link>
+ <injection-target>
+ <injection-target-class>org.apache.openejb.test.mdb.SetterInjectionMdbBean</injection-target-class>
+ <injection-target-name>statefulBusinessLocal</injection-target-name>
+ </injection-target>
+ </ejb-local-ref>
+ <ejb-ref>
+ <ejb-ref-name>stateful/beanReferences/stateful-business-remote</ejb-ref-name>
+ <ejb-ref-type>Session</ejb-ref-type>
+ <remote>org.apache.openejb.test.stateful.BasicStatefulBusinessRemote</remote>
+ <ejb-link>BasicStatefulPojoBean</ejb-link>
+ <injection-target>
+ <injection-target-class>org.apache.openejb.test.mdb.SetterInjectionMdbBean</injection-target-class>
+ <injection-target-name>statefulBusinessRemote</injection-target-name>
+ </injection-target>
+ </ejb-ref>
+ <resource-ref>
+ <res-ref-name>datasource</res-ref-name>
+ <res-type>javax.sql.DataSource</res-type>
+ <res-auth>Container</res-auth>
+ <injection-target>
+ <injection-target-class>org.apache.openejb.test.mdb.SetterInjectionMdbBean</injection-target-class>
+ <injection-target-name>daataSource</injection-target-name>
+ </injection-target>
+ </resource-ref>
+ <resource-ref>
+ <res-ref-name>connectionFactory</res-ref-name>
+ <res-type>javax.jms.ConnectionFactory</res-type>
+ <res-auth>Container</res-auth>
+ <injection-target>
+ <injection-target-class>org.apache.openejb.test.mdb.SetterInjectionMdbBean</injection-target-class>
+ <injection-target-name>coonnectionFactory</injection-target-name>
+ </injection-target>
+ </resource-ref>
+ <resource-ref>
+ <res-ref-name>queueConnectionFactory</res-ref-name>
+ <res-type>javax.jms.QueueConnectionFactory</res-type>
+ <res-auth>Container</res-auth>
+ <injection-target>
+ <injection-target-class>org.apache.openejb.test.mdb.SetterInjectionMdbBean</injection-target-class>
+ <injection-target-name>queueCoonnectionFactory</injection-target-name>
+ </injection-target>
+ </resource-ref>
+ <resource-ref>
+ <res-ref-name>topicConnectionFactory</res-ref-name>
+ <res-type>javax.jms.TopicConnectionFactory</res-type>
+ <res-auth>Container</res-auth>
+ <injection-target>
+ <injection-target-class>org.apache.openejb.test.mdb.SetterInjectionMdbBean</injection-target-class>
+ <injection-target-name>topicCoonnectionFactory</injection-target-name>
+ </injection-target>
+ </resource-ref>
+ <resource-env-ref>
+ <resource-env-ref-name>sessioncontext</resource-env-ref-name>
+ <resource-env-ref-type>javax.ejb.SessionContext</resource-env-ref-type>
+ <injection-target>
+ <injection-target-class>org.apache.openejb.test.mdb.SetterInjectionMdbBean</injection-target-class>
+ <injection-target-name>ejbContext</injection-target-name>
+ </injection-target>
+ </resource-env-ref>
+ <persistence-unit-ref>
+ <description>
+ Persistence unit for testing the functionality.
+ </description>
+ <persistence-unit-ref-name>persistence/TestUnit</persistence-unit-ref-name>
+ <persistence-unit-name>openjpa-test-unit</persistence-unit-name>
+ <injection-target>
+ <injection-target-class>org.apache.openejb.test.mdb.SetterInjectionMdbBean</injection-target-class>
+ <injection-target-name>emf</injection-target-name>
+ </injection-target>
+ </persistence-unit-ref>
+ <persistence-context-ref>
+ <description>
+ Persistence context for testing the functionality.
+ </description>
+ <persistence-context-ref-name>persistence/TestContext</persistence-context-ref-name>
+ <persistence-unit-name>openjpa-test-unit</persistence-unit-name>
+ <injection-target>
+ <injection-target-class>org.apache.openejb.test.mdb.SetterInjectionMdbBean</injection-target-class>
+ <injection-target-name>em</injection-target-name>
+ </injection-target>
+ </persistence-context-ref>
+ </message-driven>
+
</enterprise-beans>
<relationships>
Added: incubator/openejb/trunk/openejb3/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/mdb/MdbAnnotatedFieldInjectionTests.java
URL: http://svn.apache.org/viewvc/incubator/openejb/trunk/openejb3/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/mdb/MdbAnnotatedFieldInjectionTests.java?view=auto&rev=515239
==============================================================================
--- incubator/openejb/trunk/openejb3/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/mdb/MdbAnnotatedFieldInjectionTests.java (added)
+++ incubator/openejb/trunk/openejb3/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/mdb/MdbAnnotatedFieldInjectionTests.java Tue Mar 6 10:23:22 2007
@@ -0,0 +1,262 @@
+/**
+ *
+ * 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.mdb;
+
+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 MdbAnnotatedFieldInjectionTests extends MdbTestClient {
+ protected EncMdbObject ejbObject;
+
+ public MdbAnnotatedFieldInjectionTests(){
+ super("FieldInjection.");
+ }
+
+ protected void setUp() throws Exception {
+ super.setUp();
+ ejbObject = MdbProxy.newProxyInstance(EncMdbObject.class, connectionFactory, "AnnotatedFieldInjectionMdb");
+ TestManager.getDatabase().createEntityTable();
+ }
+
+ protected void tearDown() throws Exception {
+ MdbProxy.destroyProxy(ejbObject);
+ try {
+ 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());
+ }
+ }
+
+ public void test14_lookupPersistenceUnit() {
+ try{
+ ejbObject.lookupPersistenceUnit();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test15_lookupPersistenceContext() {
+ try{
+ ejbObject.lookupPersistenceContext();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test18_lookupMessageDrivenContext() {
+ try{
+ ejbObject.lookupMessageDrivenContext();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test19_lookupStatelessBusinessLocal() {
+ try{
+ ejbObject.lookupStatelessBusinessLocal();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test20_lookupStatelessBusinessRemote() {
+ try{
+ ejbObject.lookupStatelessBusinessRemote();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test21_lookupStatefulBusinessLocal() {
+ try{
+ ejbObject.lookupStatefulBusinessLocal();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test22_lookupStatefulBusinessRemote() {
+ try{
+ ejbObject.lookupStatefulBusinessRemote();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test23_lookupJMSConnectionFactory() {
+ try{
+ ejbObject.lookupJMSConnectionFactory();
+ } 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/mdb/MdbFieldInjectionTests.java
URL: http://svn.apache.org/viewvc/incubator/openejb/trunk/openejb3/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/mdb/MdbFieldInjectionTests.java?view=auto&rev=515239
==============================================================================
--- incubator/openejb/trunk/openejb3/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/mdb/MdbFieldInjectionTests.java (added)
+++ incubator/openejb/trunk/openejb3/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/mdb/MdbFieldInjectionTests.java Tue Mar 6 10:23:22 2007
@@ -0,0 +1,260 @@
+/**
+ *
+ * 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.mdb;
+
+import org.apache.openejb.test.TestManager;
+import org.apache.openejb.test.TestFailureException;
+
+/**
+ * @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 MdbFieldInjectionTests extends MdbTestClient {
+ protected EncMdbObject ejbObject;
+
+ public MdbFieldInjectionTests(){
+ super("FieldInjection.");
+ }
+
+ protected void setUp() throws Exception {
+ super.setUp();
+ ejbObject = MdbProxy.newProxyInstance(EncMdbObject.class, connectionFactory, "FieldInjectionMdbBean");
+ TestManager.getDatabase().createEntityTable();
+ }
+
+ protected void tearDown() throws Exception {
+ MdbProxy.destroyProxy(ejbObject);
+ try {
+ 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());
+ }
+ }
+
+ public void test14_lookupPersistenceUnit() {
+ try{
+ ejbObject.lookupPersistenceUnit();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test15_lookupPersistenceContext() {
+ try{
+ ejbObject.lookupPersistenceContext();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test18_lookupMessageDrivenContext() {
+ try{
+ ejbObject.lookupMessageDrivenContext();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test19_lookupStatelessBusinessLocal() {
+ try{
+ ejbObject.lookupStatelessBusinessLocal();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test20_lookupStatelessBusinessRemote() {
+ try{
+ ejbObject.lookupStatelessBusinessRemote();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test21_lookupStatefulBusinessLocal() {
+ try{
+ ejbObject.lookupStatefulBusinessLocal();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test22_lookupStatefulBusinessRemote() {
+ try{
+ ejbObject.lookupStatefulBusinessRemote();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test23_lookupJMSConnectionFactory() {
+ try{
+ ejbObject.lookupJMSConnectionFactory();
+ } 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/mdb/MdbSetterInjectionTests.java
URL: http://svn.apache.org/viewvc/incubator/openejb/trunk/openejb3/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/mdb/MdbSetterInjectionTests.java?view=auto&rev=515239
==============================================================================
--- incubator/openejb/trunk/openejb3/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/mdb/MdbSetterInjectionTests.java (added)
+++ incubator/openejb/trunk/openejb3/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/mdb/MdbSetterInjectionTests.java Tue Mar 6 10:23:22 2007
@@ -0,0 +1,260 @@
+/**
+ *
+ * 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.mdb;
+
+import org.apache.openejb.test.TestManager;
+import org.apache.openejb.test.TestFailureException;
+
+/**
+ * @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 MdbSetterInjectionTests extends MdbTestClient {
+ protected EncMdbObject ejbObject;
+
+ public MdbSetterInjectionTests(){
+ super("SetterInjection.");
+ }
+
+ protected void setUp() throws Exception {
+ super.setUp();
+ ejbObject = MdbProxy.newProxyInstance(EncMdbObject.class, connectionFactory, "SetterInjectionMdbBean");
+ TestManager.getDatabase().createEntityTable();
+ }
+
+ protected void tearDown() throws Exception {
+ MdbProxy.destroyProxy(ejbObject);
+ try {
+ 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());
+ }
+ }
+
+ public void test14_lookupPersistenceUnit() {
+ try{
+ ejbObject.lookupPersistenceUnit();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test15_lookupPersistenceContext() {
+ try{
+ ejbObject.lookupPersistenceContext();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test18_lookupMessageDrivenContext() {
+ try{
+ ejbObject.lookupMessageDrivenContext();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test19_lookupStatelessBusinessLocal() {
+ try{
+ ejbObject.lookupStatelessBusinessLocal();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test20_lookupStatelessBusinessRemote() {
+ try{
+ ejbObject.lookupStatelessBusinessRemote();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test21_lookupStatefulBusinessLocal() {
+ try{
+ ejbObject.lookupStatefulBusinessLocal();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test22_lookupStatefulBusinessRemote() {
+ try{
+ ejbObject.lookupStatefulBusinessRemote();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+
+ public void test23_lookupJMSConnectionFactory() {
+ try{
+ ejbObject.lookupJMSConnectionFactory();
+ } catch (TestFailureException e){
+ throw e.error;
+ } catch (Exception e){
+ fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ }
+ }
+}
Modified: incubator/openejb/trunk/openejb3/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/mdb/MdbTestSuite.java
URL: http://svn.apache.org/viewvc/incubator/openejb/trunk/openejb3/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/mdb/MdbTestSuite.java?view=diff&rev=515239&r1=515238&r2=515239
==============================================================================
--- incubator/openejb/trunk/openejb3/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/mdb/MdbTestSuite.java (original)
+++ incubator/openejb/trunk/openejb3/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/mdb/MdbTestSuite.java Tue Mar 6 10:23:22 2007
@@ -50,9 +50,9 @@
suite.addTest(new MdbPojoContextLookupTests());
// Injection tests
-// suite.addTest(new StatelessFieldInjectionTests());
-// suite.addTest(new StatelessSetterInjectionTests());
-// suite.addTest(new StatelessAnnotatedFieldInjectionTests());
+ suite.addTest(new MdbFieldInjectionTests());
+ suite.addTest(new MdbSetterInjectionTests());
+ suite.addTest(new MdbAnnotatedFieldInjectionTests());
return suite;
}