I think I have a similar problem like that post. That's why, I join that post.
Suse 10.2 JBOSS 4.0.5.GA EJB 3.0
I tried to get a data from mysql using manager.createQuery(); But entityManager
is not working.
Bean
| @Stateless
| public class ContentBean implements ContentInterface
| {
Its more correct to have a single transaction spanning all your persistence
operations. You might be better served using a Seam-managed transaction.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4033251#4033251
Reply to the post :
You need to have a transaction active if you want persist() to write to the
database.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4032830#4032830
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4032830