users@glassfish.java.net

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

From: Sahoo <sanjeeb.sahoo_at_oracle.com>
Date: Sat, 09 Mar 2013 23:23:15 +0530

If I understand you correctly, you are saying that the month field of
MessageServerBean is not getting populated correctly. Could you isolate
this to a regular ejb jar (non-OSGi) test case and see if it works or
not. That will help isolating the error.

Thanks,
Sahoo

On Saturday 09 March 2013 07:24 AM, forums_at_java.net wrote:
> This is regarding the issue I am confronting for the last 3 days while
> I was
> working on this. I created two OSGi bundles. One is WAB (Web Application
> Bundle) and another is a CDI Bundle where CDI Bean injections are getting
> happened. In CDI Bundle, I exposed two EJBs as OSGi Services and I
> injected
> those EJBs to the WAB. It is working fine. But the EJBs in CDI bundle are
> also using other CDI bean injections which are in the same CDI Bundle.
> Those
> injections ain't working. Only OSGi Service injections are working
> fine. I
> have already attached the code fragments here as enclosures. These are
> NetBeans projects. Awaiting for your assistance.
>
> --
>
> [Message sent by forum member 'Amit_Kumar_Mondal']
>
> View Post: http://forums.java.net/node/895558
>
>
>