Hi,
I have a Maven Java EE webapp Injecting some Instances of a certain
interface, and a regular Maven Java project with some implementations of
this interface. This last project I am building into a .jar. I want my CDI
enabled webapp to look through the .jar for implementations of said
interface.
My jar contains META-INF/beans.xml.
All is peachy (Injection happens) when I add a dependency towards the jar in
my webapp's pom.xml:
<dependency>
<groupId>com.johndoe</groupId>
<artifactId>AreeSQLiteTools</artifactId>
<version>1.0-SNAPSHOT</version>
<type>jar</type>
</dependency>
However, I expected I could just drop the .jar in a general directory, for
example TomEE's lib/ folder, and count on CDI finding it there without me
having to declare the dependency through the pom.xml.
Is there a location where I can expect my TomEE CDI webapp to look for these
.jars? Or can I setup a 'look here' location through the webapp which will
tell CDI to look at all .jars in this location?
Thanks in advance!
--
View this message in context:
http://openejb.979440.n4.nabble.com/Location-of-jar-bean-so-it-s-seen-by-CDI-tp4662777.html
Sent from the OpenEJB User mailing list archive at Nabble.com.