String are not resources. You can set it without config this way:
public class StringResource {
public String create() {return "foo";}
}
Then in container properties set:
resourceid=new://Resource?type=java.lang.String&class-name=StringResource&factory-name=create
About test ejbjar it is seen but in your sample name was wrong + test part
of a maven build is another ejbmodule than main part
Le 31 oct. 2013 02:27, "amber" <[email protected]> a écrit :
> Hi romain,
>
> just build with snapshot : same error.
>
> Something I don't understand :
>
> I have a ejb-jar.xml into \src\main\resources\META-INF with the
> resource-ref
> declaration :
> <resource-ref>
> <res-ref-name>thepath</res-ref-name>
> <res-type>java.lang.String</res-type>
> </resource-ref>
>
>
> For tests purpose I need to set the value for this reference (at runtime
> the
> value is set into standalone.xml jboss configuration file so it s working
> fine )
>
> How the value can be set with another ejb-jar.xml file into
> \src\test\resources\META-INF but this time with ?? :
>
> <env-entry-name>thepath</env-entry-name>
> <env-entry-type>java.lang.String</env-entry-type>
> <env-entry-value>the_testing_path</env-entry-value>
>
> Is there a conflict with the ejb-jar.xml defined into
> \src\main\resources\META-INF ?
>
> I guess I missed something...
>
> ps : will try to do a sample
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/resource-ref-settings-within-openEJB-tp4665781p4665807.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>