Remote Seam Persistence

Posted on Stack Overflow See other posts from Stack Overflow
Published on 2009-05-20T15:11:23Z Indexed on 2010/05/04 4:08 UTC
Read the original article Hit count: 191

Hi. I have a button in a .xhtml file which calls a javascript function which calls a java function remotely (in jboss seam environment). That java function has an entityManager.persist(object). Do you know why this line of code doesn't commit to the DB? It says something that a transaction hasn't started. I supose in a remote context i don't have a transaction began because if i put an action on that button which calls the same java function instead of using javascript is above, it works fine; entityManager persists the object and i can see it in the DB.

Does anyone has any ideas how could i make to actually persist the object using javascript to call the java function? (i have to use javascript because i need the callback function )

© Stack Overflow or respective owner

Related posts about seam

Related posts about remote