That seems a massive overkill.
Why aren't you using the persistence context?
Then you can just do exactly as the tutorial says:
| public void delete()
| {
| messageList.remove(message);
| em.remove(message);
| message=null;
| }
|
em.remove(message) will remove the 'message' record from the database.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035649#4035649
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035649
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user