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 wrote en EJB that is called by a servlet, but when it comes to persiting the data, the operation is executed without error, but table is still empty (I don't see the record that has been persisted). I use TopLink as persistence tool. So could someone tell me what's wrong
here is my code
SCJP 5 (76%)
SCWCD 5 (86%)
"The greatest glory in living lies not in never falling, but in raising every time we fall.".. Nelson Mandela
What persistence framework you user behind the jpa? If you use Hibernate, change the show_sql to true for show the SQL and look if the Insert is be generated. Check the transaction too, because if not persists data in database then a container isn't create a transaction for operation.
Joined: Dec 27, 2007
I use TopLink. Now I don't even see the records that I have in others tables. It seems that my SELECT * FROM ..... doesn't work anymore, it returns nothing.
Joined: Sep 02, 2009
Very strange! But to help you, we need you to post more relevant informations.