You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tamaya.apache.org by Anatole Tresch <an...@apache.org> on 2016/08/04 19:46:59 UTC

Fwd: Re: Apache Tamaya CDI usage

---------- Weitergeleitete Nachricht ----------
Von: "Deniz Sengun" <de...@gmail.com>
Datum: 04.08.2016 15:09
Betreff: Re: Apache Tamaya CDI usage
An: "Anatole Tresch" <an...@apache.org>
Cc:

I am using Jboss Wildfly 10, I haven't specifically implemented cdi, for
now, I want to be sure that it is working like in this example
http://tamaya.incubator.apache.org/extensions/mod_cdi.html .
Regards,
Deniz

3 Ağu 2016 ÖS 8:12 tarihinde "Anatole Tresch" <an...@apache.org> yazdı:

> Forwarding to dev...
> I am currently on holidays. Hope some of my colluegues can take it up....
>
> Maybe you can also give us some hints about the cdi implementation used,
> the app server...
>
> Best
> Anatole
>
> Am 03.08.2016 18:32 schrieb "Deniz Sengun" <de...@gmail.com>:
>
>> Hi Anatole,
>> I would like to use Apache Tamaya CDI to inject configuration, however,
>> after looking documents and seeing source code I am confused in a part that
>> makes it not working for me. The steps I have followed are;
>> 1- Added Dependencies;
>> <dependency>
>>             <groupId>org.apache.tamaya.ext</groupId>
>>               <artifactId>tamaya-injection-api</artifactId>
>>               <version>0.3-incubating-SNAPSHOT</version>
>> </dependency>
>> <dependency>
>>             <groupId>org.apache.tamaya.ext</groupId>
>>             <artifactId>tamaya-cdi</artifactId>
>>             <version>0.3-incubating-SNAPSHOT</version>
>> </dependency>
>> <dependency>
>>             <groupId>org.apache.tamaya</groupId>
>>             <artifactId>tamaya-api</artifactId>
>>             <version>0.3-incubating-SNAPSHOT</version>
>> </dependency>
>> 2- created javax.enterprise.inject.spi.Extensions under
>> META-INF/services contains a line which is org.apache.tamaya.integration.
>> cdi.ConfigurationExtension
>> 3- create javaconfiguration.properties under META-INF contains properties
>> as mentioned in documentation
>> 4- tried to use them like
>>     @Config("a.something")
>>     public String temp;
>> but when I check temp string I see that it is always null and I can't
>> configure it as desired with tamaya-CDI. There is no error message, and
>> even if I use @Config(defaultValue="asomething") or just with
>> @Config(value="asomething").
>> Since there is not a forum or chat channel,l have wrote this e-mail to
>> you, thank you for your understanding.
>> Regards,
>> Deniz
>>
>>