users@tyrus.java.net

Re: _at_Inject question

From: Pavel Bucek <pavel.bucek_at_oracle.com>
Date: Tue, 14 Jan 2014 17:26:01 +0100

Hi Ray,

@Inject will work only on Java EE container, so Glassfish or WebLogic.
Grizzly is lightweight container which provides some basic http
request/response parsing and more low level stuff, there is no DI
container involved.

Why do you need @Inject? Isn't there another way how you could solve
your issue? What are you trying to inject?

Regards,
Pavel

On 14/01/14 16:56, ray.jenkins_at_gmail.com wrote:
> Hi,
>
> I'm looking for a bit of direction in regards to understanding how
> Tyrus supports javax.inject.Inject. As per the documentation
> https://tyrus.java.net/documentation/1.3/user-guide.html#d0e785 Tyrus
> provides @Inject support. I'm using Tyrus in Grizzly and I'm making
> use of an instance of TyrusWebSocketEngine to register my
> @ServerEndpoint classes and can't seem to get Injection working. Could
> you point me towards where this is implemented?
>
> Thanks,
> Ray
>
> Sent from my iPhone