You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wink.apache.org by "Chris Harris (JIRA)" <ji...@apache.org> on 2013/11/02 08:19:18 UTC

[jira] [Created] (WINK-417) Using CDI with Wink servlet on WebSphere Application Server v8.0.x.x

Chris Harris created WINK-417:
---------------------------------

             Summary: Using CDI with Wink servlet on WebSphere Application Server v8.0.x.x
                 Key: WINK-417
                 URL: https://issues.apache.org/jira/browse/WINK-417
             Project: Wink
          Issue Type: Question
          Components: Server
    Affects Versions: 1.4
         Environment: WebSphere Application Server v8.0.0.7, Ubuntu 12.0.4, Rational Application Server v9.0, Apache Wink 1.4.
            Reporter: Chris Harris
            Priority: Minor


I created a working Wink Servlet that contains a simple GET resource that returns JSON.  Wink is configured to use MOXy for its JSON provider.  The MOXy POJO is what's being returned in the JSON response.

However, when I try injecting the POJO into my resource using WAS's provided OpenWebBeans, the POJO instance is displayed as having a value of "null" when I step through RAD's Debugger.

So, to summarize: POJO instance is not null when not injected via CDI, but POJO instance is null when injected via CDI.

How can I inject CDI beans into Wink resources within an application server such as WebSphere?



--
This message was sent by Atlassian JIRA
(v6.1#6144)