Hi Thomas

persistence.xml

  | <entity-manager>
  |    <name>iplaycmsDatabase</name>
  |    <provider>org.hibernate.ejb.HibernatePersistence</provider>
  |    <jta-data-source>java:/iplaycmsDatasource</jta-data-source>
  |    <properties>
  |       <property name="hibernate.dialect" 
value="org.hibernate.dialect.HSQLDialect"/>
  |       <property name="hibernate.hbm2ddl.auto" value="update"/>
  |       <property name="jboss.entity.manager.jndi.name" 
value="java:/IPlayCMSEntityManager"/>
  |       <property name="jboss.entity.manager.factory.jndi.name" 
value="java:/IPlayCMSEntityManagerFactory"/>
  |    </properties>
  | </entity-manager>
  | 

On of my session beas - same as example 

  | ....
  | @Stateless
  | @Name("login")
  | @Interceptors(SeamInterceptor.class)
  | public class LoginAction implements Login
  | 
  | {
  | 
  |    @In @Out
  |    private User user;
  | 
  |    @PersistenceContext
  |    private EntityManager em;
  |    ...
  | 

I even tried chaning the variable name from em to iplaycmsEntityManager to 
match the configuration, but still nothing.

any ideas ? 

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

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


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to