Skip to content

Instantly share code, notes, and snippets.

@sergiolopes
Created April 23, 2012 07:09
Show Gist options
  • Save sergiolopes/2469303 to your computer and use it in GitHub Desktop.
Save sergiolopes/2469303 to your computer and use it in GitHub Desktop.
Configuração do Weld para um Servlet Container sem CDI - copie dentro do web.xml
<listener>
<listener-class>org.jboss.weld.environment.servlet.Listener</listener-class>
</listener>
<resource-env-ref>
<resource-env-ref-name>BeanManager</resource-env-ref-name>
<resource-env-ref-type>
javax.enterprise.inject.spi.BeanManager
</resource-env-ref-type>
</resource-env-ref>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment