This week's book giveaway is in the Testing forum. We're giving away four copies of The Way of the Web Tester: A Beginner's Guide to Automating Tests and have Jonathan Rasmusson on-line! See this thread for details.
Hi, I want to call 4 methods i.e.,insert update,add,delete on 4 buttons and thru this i want to call diff methods which r in the same entity bean.So for that i've to lookup for four times(which is getting problamatic ) or i 've to write 4 diff.beans.coz of some things i cant use session bean.so what is the solution for this??? bye Samir
posted 15 years ago
You should use a session bean as a front for your entity beans if possible, it's good practice. To avoid having to lookup again between Txns, you can use a handle - it will persist refs to an EJBObject.