Hi, as from my other posts, still trying to get to grips with Tomee / CDI,
etc... :-)
I am trying to add a resource via xml file and still get my beans to be
scanned and found.
To better explain what I am trying to do, consider the Tomee JPA Eclipselink
example.
If I want to pull the datasource out into a file (I believe it has to be
WEB-INF/resources.xml), and have something like this in it:
<?xml version="1.0" encoding="UTF-8"?>
<Resource id="movieDatabase" type="javax.sql.DataSource">
JdbcDriver org.hsqldb.jdbcDriver
JdbcUrl jdbc:hsqldb:file:hsqldb
UserName sa
Password
</Resource>
However, as soon as this file is present (also, it seems it can be named any
file, e.g. x_resources.xml does the same thing), I get an exception:
org.apache.openejb.OpenEjbContainer$NoModulesFoundException: No modules
found to deploy.
1)Maybe descriptors are placed in incorrect location.
etc...
Is there a way I can add the resource and still get the scanning for the
beans??
Regards
Colin
--
View this message in context:
http://tomee-openejb.979440.n4.nabble.com/How-to-add-resources-and-still-scan-for-beans-tp4676236.html
Sent from the TomEE Users mailing list archive at Nabble.com.