<ejb-jar xmlns="http://java.sun.com/xml/ns/javaee" version="3.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_1.xsd"> <enterprise-beans> <session> <ejb-name>Course</ejb-name> <env-entry> <env-entry-name>thepath</env-entry-name> <env-entry-type>java.lang.String</env-entry-type> <env-entry-value>mytestpath</env-entry-value> </env-entry> </session> </enterprise-beans>
</ejb-jar> works, about the resource not sure it would work for string but in unit test you can configure it through properties (new://Resource?....) - common for datasources for instance Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2013/10/30 amber <[email protected]>: > Here the sample cdi-basic modified like I do for my project : > - adding cdi-basic\src\main\resources\META-INF\ejb-jar.xml with resource-ref > declaration > - adding cdi-basic\src\test\resources\META-INF\ejb-jar.xml with env-entry > declaration > > same error > > thx to point me on my mistake :) > > > cdi-basic-resource-ref-err.zip > <http://openejb.979440.n4.nabble.com/file/n4665814/cdi-basic-resource-ref-err.zip> > > > > -- > View this message in context: > http://openejb.979440.n4.nabble.com/resource-ref-settings-within-openEJB-tp4665781p4665814.html > Sent from the OpenEJB User mailing list archive at Nabble.com.
