[jboss-user] [JBoss Seam] - Re: Seam, problem with EntityManager

hispeedsurfer do-not-reply at jboss.com
Mon Jul 2 03:38:02 EDT 2007


if you have the following in components.xml
<core:managed-persistence-context name="entityManager"
  |                               auto-create="true"
  |                persistence-unit-jndi-name="java:/TestEntityManagerFactory"/>

you can use
@In(create=true)
  | 	private EntityManager entityManager;

But one question. Why you have managed-bean stuff in faces-config.xml?
This should be handelt from your annotations in your bean, I think!

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059519



More information about the jboss-user mailing list