Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Using annotations - @Resource

On Thu, 26 Feb 2015, at 09:23, Rui Lopes wrote:
> Hi all!
> 
> Are annotations such as @Resource possible to use?

Jetty doesn't directly support CDI. You'd need to use something like
Weld. I've never used this with Jetty myself, but there's documentation
at
http://docs.jboss.org/weld/reference/latest/en-US/html/environments.html#_servlet_containers_such_as_tomcat_or_jetty.

-- 
  Carey Evans
  carey@xxxxxxxxxxxxx


Back to the top