Hi Ram,
Entity Bean is in memory, so you are seeing your updates. And JDBC is reading from database so you are not seeing your updates. EJBFind is returning reference to the bean in memory. Anyway, if you want to see the results from session bean, then you should force entity bean (its like cache/buffer) to commit. That you can do by calling entity bean method with in a transaction (thats the only way ejbStore is guaranteed to call).
Or you can implement SessionSynchronization interface in your sessionBean. Then you can listen to Beforecommit event. Thats a different approach but more right approach to achieve what you are trying to do.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078028#4078028
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078028
I'm reading my 3rd Seam book now. Practical JBoss Seam Projects. Seems to rehash a lot of the material from the other Apress book and the Yuan book. Pretty short as well.
Are there any authors working on an advanced Seam book that discusses best practices, design patterns (DAO, etc.), scalability/performance/clustering, OOAD/UML chapter?
Basically a book that doesn't cover, "you need Java 5 for annotations", and this JBoss AS version, etc.
I know the Yuan book covered some advanced topics like difference b/n saving state to client or server, clustering and DAO a little but a lot of it was intro as well.
There may be some books in process on Seam 2...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078027#4078027
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078027