Meu components.xml
<?xml version="1.0" encoding="UTF-8"?><components xmlns=“http://jboss.com/products/seam/components”
xmlns:web=“http://jboss.com/products/seam/web”
xmlns:security=“http://jboss.com/products/seam/security”
xmlns:persistence=“http://jboss.com/products/seam/persistence”
xmlns:core=“http://jboss.com/products/seam/core”
xmlns:transaction=“http://jboss.com/products/seam/transaction”
xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”
xmlns:international=“http://jboss.com/products/seam/international”
xsi:schemaLocation=
“http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.2.xsd
http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.2.xsd
http://jboss.com/products/seam/transaction http://jboss.com/products/seam/transaction-2.2.xsd
http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.2.xsd
http://jboss.com/products/seam/international http://jboss.com/products/seam/international-2.2.xsd
http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.2.xsd”
<core:init debug="true"/>
<persistence:entity-manager-factory class="persistence.DynamicEntityProvider" name="mainDatabase"/>
<transaction:entity-transaction entity-manager="#{entityManager}"/>
<persistence:managed-persistence-context name="em" auto-create="true" entity-manager-factory="#{mainDatabase}"/>
<persistence:managed-persistence-context name="entityManager" auto-create="true" entity-manager-factory="#{mainDatabase}"/>
<security:identity authenticate-method="#{authenticatorAction.authenticate}" />
<core:manager concurrent-request-timeout="500"
conversation-timeout="120000"
conversation-id-parameter="cid"/>
<!-- default-flush-mode="MANUAL/>" -->
<component name="org.jboss.seam.core.init">
<property name="jndiPattern">#{ejbName}/local</property>
</component>
<international:locale-selector cookie-enabled="true"/>