components.xml

  | <?xml version="1.0" encoding="UTF-8"?>
  | <components xmlns="http://jboss.com/products/seam/components";
  |             xmlns:core="http://jboss.com/products/seam/core";
  |                     xmlns:security="http://jboss.com/products/seam/security";
  |             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  |                     xmlns:mail="http://jboss.com/products/seam/mail";
  |                     
xmlns:transaction="http://jboss.com/products/seam/transaction";
  |                     
xmlns:jms="http://www.jboss.org/soa/endpoint/protocol/jms"; 
  |             xsi:schemaLocation=
  |                 "http://jboss.com/products/seam/core 
http://jboss.com/products/seam/core-1.2.xsd 
  |                              http://jboss.com/products/seam/security 
http://jboss.com/products/seam/security-1.2.xsd
  |                              http://jboss.com/products/seam/mail 
http://jboss.com/products/seam/mail-1.2.xsd
  |                  http://jboss.com/products/seam/components 
http://jboss.com/products/seam/components-1.2.xsd";>
  | 
  |    <core:init debug="true" jndi-pattern="@jndiPattern@"/>
  |    <core:managed-persistence-context name="entityManager"
  |            persistence-unit-jndi-name="java:/myEntityManagerFactory"/>
  |     <core:manager conversation-timeout="120000"
  |                   concurrent-request-timeout="500"
  |                   conversation-id-parameter="cid"/>
  |     <transaction:ejb-transaction/>
  |     <core:dispatcher />
  |     <security:identity authenticate-method="#{authenticator.authenticate}"/>
  |  </components>
  | 

persistence.xml
 
  | <?xml version="1.0" encoding="UTF-8"?>
  | <persistence xmlns="http://java.sun.com/xml/ns/persistence"; 
  |              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  |              xsi:schemaLocation="http://java.sun.com/xml/ns/persistence 
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"; 
  |              version="1.0">
  | 
  |    <persistence-unit name="myProject">
  |       <provider>org.hibernate.ejb.HibernatePersistence</provider>
  |       <jta-data-source>java:/myProjectDatasource</jta-data-source>
  |       <properties>
  |          <property name="hibernate.cache.use_query_cache" value="true"/>
  |          <property name="hibernate.show_sql" value="true"/>
  |          <property name="jboss.entity.manager.factory.jndi.name" 
value="java:/myProjectEntityManagerFactory"/>
  |              <property name="hibernate.dialect" 
value="org.hibernate.dialect.MySQL5Dialect" />
  |       </properties>
  |    </persistence-unit>
  | </persistence>
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116875#4116875

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4116875
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to