i searched the forums and the docs but could not find the answer to my question. setup is jboss as 4.0.5 GA, seam 1.2.1GA, mysql 5.1, mysql connector 5.0.6, eclipse europa.
i have a seam-gen genereted app with EJBs reverse engineered through hibernate. the EJBs all use annotations and are connected to the db via a jndi datasource (as far as i understand). the datasource is defined in app-dev-ds.xml, then the jndi is referenced in persistence-dev.xml to get an EntityManagerFactory which is finally used in componments.xml:
<core:managed-persistence-context name="entityManager" auto-create="true" persistence-unit-jndi-name="java:/appEntityManagerFactory"/>