This content has been marked as final.
Show 1 reply
-
1. Re: IdentityManager and SeamResourceServlet
ganton516 Dec 15, 2008 5:44 AM (in response to ganton516)I negleted to mention in the first post, that I am using JBoss 5.0.0.GA, and Seam-2.1.1.CR2
The plot thickens on this one...........
I also cannot persist changes to an entity via an EntityManager.
The EntityManager is retrieved via:
EntityManager = (EntityManager)Component.getInstance("entityManager");
and I successfully retrieve the correct entity via:
UserAccount userAccount = (UserAccount)entityManager.find(UserAccount.class,uid);
Then, I update the enabled field of the UserAccount entity, and persist via:
entityManager.persist(userAccount);
No Exceptions/Errors, database is NOT modified.
I am not finding a whole lot in the way of
examples
, using the AbstractResource to take the place of a servlet and it's getting quite frustrating.Can anybody could point me to some working code, or point out the error of my ways ?
TIA
g