Hi, currently you need to define a service-jar.xml file. This sample does it for the "router" resource: http://openejb.apache.org/dynamic-datasource.html
did you try using name instead of mappedname? - Romain 2012/6/25 nelito <[email protected]> > Hi, > > I am trying to use the OpenEJB 4.1.0-SNAPSHOT and JUnit 4.10 to test an > application. > I was able to define the Datasource and start the Embedded OpenEJB on my > tests using EJBContainer.createEJBContainer(prop); but when i try to test a > EJB that uses the annotation @Resource for a Custom Resource it returns the > following error: > org.apache.openejb.OpenEjbContainer$ConfigureApplicationException: nested > exception is: org.apache.openejb.OpenEJBException: No provider available > for > resource-ref 'null' of type > 'org.apache.chemistry.opencmis.client.api.Repository' for > 'ScheduleAdapter'. > > It was created a Mock Class to simulate this, and added to the property > file > the following configuration: > "java/cmis=new://Resource?type=com.session.FakedRepository". The > "java/cmis" > is the mappedName used on the tag. > But still his ignored. Anyone knows how I can define the resource to be > used by the container? > > > Manuel > > > -- > View this message in context: > http://openejb.979440.n4.nabble.com/OpenEJB-Binding-Custom-Resources-tp4655764.html > Sent from the OpenEJB Dev mailing list archive at Nabble.com. >
