[jboss-user] [JBoss Seam] - Re: Home and Query objects broken after migration to Seam 2.
kindor
do-not-reply at jboss.com
Thu Jan 3 16:52:17 EST 2008
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
More information about the jboss-user
mailing list