Skip to content

Instantly share code, notes, and snippets.

View MarcosiOSdev's full-sized avatar
📱
Developing

Marcos Felipe Souza MarcosiOSdev

📱
Developing
View GitHub Profile
@MarcosiOSdev
MarcosiOSdev / gist:2d9ba77ed1370eed8f7c
Created February 6, 2015 17:20
Weld no Tomcat para o CDI
<?xml version="1.0" encoding="UTF-8"?>
<Context>
<Manager pathname=""/> <!-- disables storage of sessions across restarts -->
<Resource name="BeanManager"
auth="Container"
type="javax.enterprise.inject.spi.BeanManager"
factory="org.jboss.weld.resources.ManagerObjectFactory"/>
</Context>
@MarcosiOSdev
MarcosiOSdev / web.xml
Last active August 29, 2015 14:14
web.xml + jsf 2.2 + web servlet 3.1
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
version="3.0">
<display-name>PrimeFaces HelloWorld Example</display-name>
<!-- Define the JSF listener class when using the Jetty Maven Plugin
with Jetty8 -->