A correction and some more questions:
I can still undeploy my ear app (unless I'm mistaken, it didn't work on
yesterday snapshot but today it works if I delete the .ear file first).
More questions:
1. If I keep my JDBC resources in my ear in resources.xml (for my
development purposes) but also have them
defined in tomee.xml, but pointing them on another database, it seems
that the datasources in tomee.xml
are not overriding the ones in META-INF/resources.xml.
Is this ok ? There is no priority/hierarchy to them ?
So I can't have JDBC resources defined in my app because on deployment,
the customer need to have its own jdbc URL but META-INF/resources.xml would
be the one loaded anyway.
2. I've checked the documentation but I'm having some difficulties with this
:
/SEVERE: Searched 25 classpath urls in 29168 milliseconds. Average 1166
milliseconds per url. TOO LONG!
May 23, 2013 2:20:09 PM org.apache.openejb.config.DeploymentsResolver
loadFromClasspath
SEVERE: ADJUST THE EXCLUDE/INCLUDE!!!. Current settings:
openejb.deployments.classpath.exclude='',
openejb.deployments.classpath.include='.*'
INFO: Inspecting classpath for applications: 25 urls. Consider adjusting
your exclude/include. Current settings:
openejb.deployments.classpath.exclude='',
openejb.deployments.classpath.include='.*'/
If I understand correctly, my ear/libs dependencies are probably the ones
wasting the scanner time.
But where should I define openejb.deployments.classpath.exclude/include ? It
doesn't seems that I can put those in my ear/META-INF/somefile.xml. Wouldn't
that be great if I could define my app exclude/include in my app archive ?
Sorry for the avalanche of questions ;-)
--
View this message in context:
http://openejb.979440.n4.nabble.com/Couple-of-questions-it-works-but-ear-tp4663190p4663191.html
Sent from the OpenEJB User mailing list archive at Nabble.com.