In terms of design: I don't think it's wise to browse messages, then use them, then attempt to remove them. What happens if you fail to remove them?
It'd be wise to use transactions, and for that I recommend using MDB. I don't really understand the high-level reason for what you are doing. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3983939#3983939 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3983939 _______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
