This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
I have a session bean which finds a BMP bean by its primary key using ejbFindbyPrimarykey() then to retrieve other values of the bean i use get methods to populate a Value object in session bean.How about setting and sending in the value object itself from with in the BMP bean.Does it work...? is it a good practice?.
Yes it works and yes it�s a good practice. If you access the bean remotely through its remote interface is better to have coarse-grained methods that get/set bean�s attributes at once (passing or retrieving a VO). However if the bean is always accessed locally, then you might use fine-grained methods for getting/setting bean�s attributes one by one. As I understand from your design, the entity bean is hidden from the clients through a session fa�ade, which again is a good practice. Just make sure that the session ejb accesses the entity bean through its local interface. Regards.