This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
What happens when findByPrimaryKey method is invoked. Can any body explain me the flow of the program.. One of my program calls an ejb method to display the contents from the database .It works for the values which was inserted before the Jboss server restarts. But the same code doesnot work for newly inserted values(even though it is updated in the db). Here is the code which i used for displaying the value.
Answer know = myHome.findByPrimaryKey( new AnswerPK(new Double(this.model.getID())));