[jboss-user] [JBoss Seam] - Re: Beginner: Bind SelectOneMenu to @onetoone entity object

nickarls do-not-reply at jboss.com
Mon Jan 28 03:27:49 EST 2008


What version of Seam are you running? Are there any errors in the log from not being able to create the persitence units? In 2.0 the link should be something like

a deployed Foo-ds.xml with a

  | <jndi-name>FooDatasource</jndi-name>
  | 

a persistence.xml with

  | <jta-data-source>java:/FooDatasource</jta-data-source>
  | <property name="jboss.entity.manager.factory.jndi.name" value="java:/FooEntityManagerFactory" />
  | 

and in components.xml


  | <persistence:managed-persistence-context name="entityManager" auto-create="true" persistence-unit-jndi-name="java:/FooEntityManagerFactory" />
  | 

Which should give you auto-created SMPC available with just 

  | @In private EntityManager entityManager;
  | 

(and injection into all controllers etc. that use the "entityManager" name)

you seem to have some sort of managed-persistence-context in components.xml, although under another namespace?


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

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



More information about the jboss-user mailing list