I ran into a similar problem when I started using EJB3. As it turned out it wasn't a
problem with EJB3 but a configuration issue with my database.
I was using MySql which by default uses a non transactional storage engine (at least in
the Linux distribution). Here is some documentation from MySQL
http://dev.mysql.com/doc/refman/4.1/en/storage-engines.html
Once I altered the database configuration to use the innodb storage engine my transaction
rolled back as expected.
The default behaviour for the for the stateless session bean is to wrap each method call
in a transaction or participate in an existing transaction (should it already exist). In
the case where a transaction had not been created when you called the persist method on
the entity manager you would have received a TransactionRequiredException.
Not sure if this is your particular problem but gives you something to check into.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070806#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...