-
1. EntityManager in a @Service
jaikiran Apr 18, 2011 4:03 AM (in response to apolci)What's the full packagename of the @Service annotation that you are using? It should be @org.jboss.ejb3.annotation.Service.
-
2. EntityManager in a @Service
apolci Apr 18, 2011 4:07 AM (in response to jaikiran)Yes, it is.
Also the annotation on the interface is @org.jboss.ejb3.annotation.Management.
Andrea
-
3. EntityManager in a @Service
jaikiran Apr 18, 2011 4:09 AM (in response to apolci)Post the code which gets access to the service and invokes on it. Also are you packaging any jar files containing javax.persistence.* classes or JBoss specific jars in your application? If yes, then remove such jars.
-
4. EntityManager in a @Service
apolci Apr 18, 2011 4:16 AM (in response to jaikiran)Actually I'm accessing the service throgh the JMX console, so I don't have any code accessing it.
I'm not also packaging any javax.* or jboss pecific jars.
-
5. EntityManager in a @Service
jaikiran Apr 18, 2011 4:21 AM (in response to apolci)Got a simple application which I can quickly test and see if it's a bug? If yes, then please attach it here.
-
6. EntityManager in a @Service
apolci Apr 18, 2011 4:44 AM (in response to jaikiran)Trying to simplify my application to attach it here it started to work.
Still don't know what is causing my problem but now I have something to investigate (maybe it wasn't related to the service and had something to do with the persistence unit).
Thanks for your help.
Andrea