users@glassfish.java.net

RE: CDI Bean Injection not happening..(Only Service Injection)

From: Martin Gainty <mgainty_at_hotmail.com>
Date: Wed, 13 Mar 2013 18:21:13 -0400

You need to determine when the injection will happen:

1)during build and or package phase then yes use an osgi build such as maven-build-plugin
2)runtime then you're dependent on the container to resolve the classes it imports depending on the value of delegate="true" in glassfish-web.xml (discussed earlier)

http://docs.oracle.com/cd/E18930_01/html/821-2418/beadh.html#scrolltoc

The last email you sent had a statement that went on for 2 pages so my advice would be
1)break each class injector out so we can see the exact method you are implementing
2)If you are using service injectors which service injector are you implementing and how are you configuring the injector?
3)How does the injector know when to run
4)Include in all applicable annotations AND their attributes
5)Indicate if you are using any of injectors such as SPRING and if so which version

Martin
______________________________________________
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.

  


> To: users_at_glassfish.java.net
> Subject: Re: CDI Bean Injection not happening..(Only Service Injection)
> From: forums_at_java.net
> Date: Wed, 13 Mar 2013 09:21:36 -0500
>
> You mean to say, I should make those CDI Beans as OSGi Services for the
> injection to happen. I thought of doing it the same way but there will be
> lots of services for only one specific functionality. Will it create any
> overhead for the application?
>
> --
>
> [Message sent by forum member 'Amit_Kumar_Mondal']
>
> View Post: http://forums.java.net/node/895558
>
>