Hi, i using openejb for my test cases... On Jboss i have the follow configuration, for example:
<subsystem xmlns="urn:jboss:domain:naming:1.1"> <bindings> <simple name="myproperty1" value="someValue"/> </bindings> </subsystem> While on glassfish i have: <custom-resource res-type="java.lang.String" description="true" jndi-name="myproperty1" factory- class="org.glassfish.resources.custom.factory.PrimitivesAndStringFactory"> <property name="value" value="false"></property> </custom-resource> With this properties, on the bean, i can look up the declared constants: String myproperty1 = ServiceLocator.getInstance().getProperty("myproperty1"); How can i do that on the OpenEjb? I can't register that custom resource on "openejb.xml", and not even on the jdni.propertis... Always have NameNotFoundException... If i try this on the openejb.xml: <Resource id="myproperty1" type="java.lang.String"> value = true </Resource> It also results in error ... -- View this message in context: http://openejb.979440.n4.nabble.com/Lookup-Simple-String-Property-tp4658819.html Sent from the OpenEJB User mailing list archive at Nabble.com.