Open GoogleCodeExporter opened 8 years ago
I think that your problem is that UserDaoImpl must be a EJB. I don't know if
Spring
can work with PersistenceContext.
In my case, i work with JBoss Application Server, and same code as you write
works fine.
Original comment by edson.go...@gmail.com
on 11 Sep 2009 at 5:55
I'm using tomcat, can this to be the problem?
Original comment by ccha...@gmail.com
on 11 Sep 2009 at 6:11
where is you void persist(User user) implementation ?
Original comment by matiasbe...@gmail.com
on 11 Sep 2009 at 8:07
to in no place, because he thought he could use the Save method of the parent
class:
userDao.save(user);
Original comment by ccha...@gmail.com
on 11 Sep 2009 at 8:09
Really, i don't know.
I think that Spring should properly inject the persistence unit, regardless of
the
container. But, as I use the JBoss application server simply can not tell you
the
result of using Tomcat.
I honestly do not know if I can help you much, since you are using a different
environment which I have running.
Original comment by edson.go...@gmail.com
on 11 Sep 2009 at 11:49
The fact is that you must continue to find out about the injection of the
persistence
unit, poorly engineered design may be affecting the dependency injection.
Original comment by edson.go...@gmail.com
on 11 Sep 2009 at 11:50
ok thanks, I will continue looking and I can say
Original comment by ccha...@gmail.com
on 12 Sep 2009 at 1:27
Original issue reported on code.google.com by
ccha...@gmail.com
on 11 Sep 2009 at 5:10