I'm working with version 4.03SP1.
I have a stateful session bean
| @Stateful
| public class ActivityManager implements Activity,Serializable {
|
| @PersistenceContext(type=EXTENDED,unitName="em")
| private EntityManager em;
|
| ...
|
|
My persistence.xml
| <entity-manager>
|
| <name>em</name>
| <provider>org.hibernate.ejb.HibernatePersistence</provider>
| <jta-data-source>java:/MSSQLAppDSInterop</jta-data-source>
|
| <class>com.xpel.hibernate.UserAccount</class>
|
| <properties>
| <property name="hibernate.dialect"
value="org.hibernate.dialect.SQLServerDialect"/>
| <property name="hibernate.transaction.manager_lookup_class"
value="org.hibernate.transaction.JBossTransactionManagerLookup"/>
|
| </properties>
|
| </entity-manager>
|
When any methods on the bean are called, the EntityManager "em" resolves to a
null value. I have a similiar project where this works flawlessly using the
same libraries and app-server instance.
Suggestions?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3923652#3923652
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3923652
-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user