[jboss-user] [JBoss Seam] - Re: skeleton generated by Hibernate does not work, probably
bpgergo
do-not-reply at jboss.com
Mon Jul 2 17:32:20 EDT 2007
Found one more suspicious thing. There is a reference in META-INF/persistence.xml and in WEB-INF/components.xml on seamappEntityManagerFactory and I wonder how could it be resolved.
persistence.xml
| <entity-manager>
| <persistence-unit name="entityManager">
| <provider>org.hibernate.ejb.HibernatePersistence</provider>
| <!-- modified manually from DefaultDS -->
| <jta-data-source>java:/TimeDS</jta-data-source>
| <properties>
| <!-- modified manually from HSQLDialect -->
| <property name="hibernate.dialect" value="org.hibernate.dialect.OracleDialect" />
| <property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup" />
| <property name="hibernate.transaction.flush_before_completion" value="true" />
| <!-- commented manually -->
| <!--property name="hibernate.hbm2ddl.auto" value="create-drop" /-->
| <property name="hibernate.show_sql" value="true" />
| <property name="jboss.entity.manager.factory.jndi.name" value="java:/seamappEntityManagerFactory" />
| </properties>
| </persistence-unit>
| </entity-manager>
|
components.xml
| <?xml version="1.0" encoding="utf-8"?>
| <components>
| <component name="org.jboss.seam.core.init">
| <property name="myFacesLifecycleBug">true</property>
| <property name="jndiPattern">seamapp/#{ejbName}/local</property>
| </component>
| <component name="entityManager" class="org.jboss.seam.core.ManagedPersistenceContext">
| <property name="persistenceUnitJndiName">java:/seamappEntityManagerFactory</property>
| </component>
| <!--
| <component name="org.jboss.seam.core.manager">
| <property name="conversationTimeout">120000</property>
| </component>
|
| <component class="org.jboss.seam.core.Ejb" installed="false"/>
| -->
| </components>
|
I'm afraid I do not have a clear overview on this whole app. I guess I go through the seam tutorial again.
Anyway, it would be great if anybody clarified me this problem.
Thanks
Gergo
Gergo
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059746#4059746
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059746
More information about the jboss-user
mailing list