Hello, I am testing a BMP entity bean on JBoss. As we all know, in a BMP entity bean, we write "insert" statement in ejbCreate and "update" statement in ejbStore. When I test the bean by creating a record, the following sequence is shown :
Why are you writing update in ejbStore? Why not create a bizmethod of your own for the same and call update from there and then container can call ejbStore/ejbLoad as its own wish or fancies and you are not affected by the same.
Rahul Devgan<br />SCJP<br />--- one must be willing to let go of small pleasures in life to achieve greater things ---
I am developing a BMP bean for the first time. And in the book, it was shown to write updated statements in ejbStore method. For BMP, I think that would be the right way. Even otherwise, let's say I write a CMP. So, even in CMP, will ejbStore be called during create?
or will ejbStore be defenitely called during create? can I rely on that part?