components.xml 2.33 KB
<?xml version="1.0" encoding="UTF-8"?>
<components 
  xmlns:core="http://jboss.com/products/seam/core"
	xmlns="http://jboss.com/products/seam/components"
  xmlns:persistence="http://jboss.com/products/seam/persistence"
  xmlns:drools="http://jboss.com/products/seam/drools"
  xmlns:bpm="http://jboss.com/products/seam/bpm"
  xmlns:security="http://jboss.com/products/seam/security"
  xmlns:mail="http://jboss.com/products/seam/mail"
  xmlns:web="http://jboss.com/products/seam/web"
  xmlns:transaction="http://jboss.com/products/seam/transaction"
  xmlns:jms="http://jboss.com/products/seam/jms"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="
		http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.2.xsd
		http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.2.xsd
		http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.2.xsd
		http://jboss.com/products/seam/drools http://jboss.com/products/seam/drools-2.2.xsd
		http://jboss.com/products/seam/bpm http://jboss.com/products/seam/bpm-2.2.xsd
		http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.2.xsd
		http://jboss.com/products/seam/mail http://jboss.com/products/seam/mail-2.2.xsd
		http://jboss.com/products/seam/web http://jboss.com/products/seam/web-2.2.xsd
		http://jboss.com/products/seam/transaction http://jboss.com/products/seam/transaction-2.2.xsd
		http://jboss.com/products/seam/transaction http://jboss.com/products/seam/jms-2.2.xsd
">

	<core:init 
		jndi-pattern="${app.jndi.pattern.test}" 
		debug="${app.debug}"
		transaction-management-enabled="true" />

	<!-- JPA -->
  <transaction:ejb-transaction />

	<!-- TODO: How do we define OpenEjb entity manager factory here??? 
	<persistence:entity-manager-factory
		name="entityManagerFactory"
		class="no.knowit.seam.openejb.mock.SeamManagedEntityManagerFactoryBean"
		persistence-unit-name="${pu.name}"
		installed="true"
		startup="true" />
	-->
	
	<persistence:managed-persistence-context
		name="entityManager" 
		auto-create="true"
		scope="conversation" 
		entity-manager-factory="#{entityManagerFactory}" 
		persistence-unit-jndi-name="${pu.jboss.entity.manager.factory.jndi.name}" />
		
  <security:identity 
	  authenticate-method="#{authenticator.authenticate}" 
	  remember-me="true" />
		
</components>