users@glassfish.java.net

CDI @Inject does not work in SOAP handler chain

From: <forums_at_java.net>
Date: Sun, 11 Dec 2011 08:56:25 -0600 (CST)

Hi,

It seems that @Inject does not work in my SOAP service handler: (MyHandler
implements LogicalHandler<LogicalMessageContext>). The CDI bean I try to
inject stays null. The same bean does get injected in a Servlet in the same
war.

It has probably to do with how Glassfish/Metro instantiates the handler
chain. Is this a bug or is this according specs?

Thanks!


--
[Message sent by forum member 'harrol']
View Post: http://forums.java.net/node/873115