[jboss-user] [JBoss Seam] - Re: What's wrong with this components.xml / persistence.xml
stu2
do-not-reply at jboss.com
Mon Mar 12 16:54:14 EDT 2007
"mlh496" wrote : Thank you so much for your response. At least now I'm getting different error messages. :-)
|
| There seems to be some conflicts in the Seam documentation. Do you need a "entity-manager-factory" node as well? In some places I've read where this configuration is needed (even though it never works for me):
|
| <core:managed-persistence-context name="entityManager"
| | auto-create="true"
| | entity-manager-factory="#{omegaEntityManagerFactory}"/>
| |
| | <core:entity-manager-factory name="omegaEntityManagerFactory"
| | persistence-unit-name="omega"/>
|
| In Seam 1.2, which is the correct way to create the entityManager component when deploying to Tomcat?
|
| All the best,
| -Michael
I'm using the EntityQuery successfully, and in my components.xml I have
| <core:managed-persistence-context name="entityManager" auto-create="true"
| persistence-unit-jndi-name="java:/fbEntityManagerFactory" />
|
All of the Seam framework components (EntityController, Homes and Queries expect to find persistence-context named entityManger, though you can override these (look at the source, there's a getPersistenceContextName() method in each).
What exceptions are you seeing?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027336#4027336
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027336
More information about the jboss-user
mailing list