Hi, Anatole-- Thank you very much! Please find my branch here:
https://github.com/ajs6f/trellis-cassandra-webapp/tree/TamayaConfig and the bean field where I'm using @Config is here: https://github.com/ajs6f/trellis-cassandra-webapp/blob/TamayaConfig/src/main/java/edu/si/trellis/cassandra/CassandraSession.java#L47 I'm sorry for the somewhat chaotic code-- this is a very experimental project, although of course CDI and JAX-RS are not the experimental part. Please let me know what more info would be useful, and thank you for your help! (If you would like some log output, I can certainly package that up somewhere for you.) ajs6f > On Aug 24, 2018, at 2:34 AM, Anatole Tresch <[email protected]> wrote: > > Thanks for your mail. Basically the extension must load properly for Tamaya > CDI to work. If you can provide some kind of sample project it would be > perfect and I am happy to help. > > J Anatole > > ajs6f <[email protected]> schrieb am Do., 23. Aug. 2018, 22:00: > >> Hi, Tamaya-folks! >> >> I'm tinkering with Tamaya (0.3-incubating) for a webapp I'm writing >> (deployed as a WAR in a servlet container). I'm using JAX-RS (Jersey 2.27) >> and CDI (Weld 3.0.5.Final) and I would love to use tamaya-cdi, but I'm >> running into an odd problem. >> >> I'm not seeing TamayaCDIInjectionExtension properly initialized as a CDI >> extension, but oddly, I _am_ seeing the TamayaCDIAccessor extension show up >> and get initialized. So when my bean wirings are validated, injection >> points with a @Config @Inject are failing because CDI doesn't know to go to >> Tamaya for such injections. >> >> Has anyone seen anything like this? I can certainly put my current branch >> up somewhere if that would be useful. My >> javax.enterprise.inject.spi.Extension is as simple as: >> >> # Register Tamaya to perform injection >> org.apache.tamaya.cdi.TamayaCDIAccessor >> org.apache.tamaya.cdi.TamayaCDIInjectionExtension >> >> but only one of those guys seems to come to life! :grin: >> >> ajs6f >> >> >> >>
