This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
I am trying to use a Stateless Session Bean and Container Managed Persistence to update data in my data base using aWeblogic 10 server, Oracle 10 database and the supplied Kodo PersistenceManager. My persistence xml looks like this:
I can find the data just fine. When I modify a value and call persist that seems to execute without and error, at least none that I have been able to detect. However when I look at the database the data has not been modified.
If I simply create the EntityManager and call em.getTransaction().begin(), modifiy the data, call persist, then call em.getTRansaction().commit() the data in the DB has been modified. However this way I am not letting the container manager the transaction.
Any suggestions as to what I am doing incorrectly or how to get more information.
If you can read the data in the entity just fine but cannot write, I'd check to see if there's an exception somewhere you might be swallowing. Also, its possible, albeit unlikely, your database user logon does not have permission to write to the database.