thanks for the reply
i must be missing someting, each example, login or kitchensink has there own persistence.xml file
which gives the PU a name, whcih i would think would be needed by the class in the src code injecting the EntityManager.
for login's persistence.xml
<persistence-unit name="loginDatabase">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<jta-data-source>java:jboss/datasources/ExampleDS</jta-data-source>
and for kitchsink persistence.xml
<persistence-unit name="primary">
<!-- If you are running in a production environment, add a managed
data source, the example data source is just for proofs of concept! -->
<jta-data-source>java:jboss/datasources/ExampleDS</jta-data-source>
but neither of the managed beans use code to inject a PU named "loginDatabase" or "primary"