[jboss-user] [EJB/JBoss] - Re: Way to implement a removeAll() method?
seansawyer
do-not-reply at jboss.com
Fri Jun 8 09:34:44 EDT 2007
Except, unfortunately, that the project in question does not use Hibernate.
It seems that there is no way to accomplish this through EJB:
http://forum.java.sun.com/thread.jspa?threadID=5174100&messageID=9671593
The impetus for this post was that, with a sufficiently large number of entities, I experience transaction timeouts due to the length of time it takes to iterate over the entities and delete everything using EJB's remove().
That said, perhaps the best (in this case, fastest) way to do this would be to use JDBC to delete the records and then iterate over any entities hanging around in the EJB cache and call remove() on those.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052577#4052577
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4052577
More information about the jboss-user
mailing list