Posted By:
Arvind_Ajimal
Posted On:
Monday, April 5, 2004 04:53 AM
The main idea is to have methods as we have EJBs.
think of ur methods as they are EJBs.
All those who fall parallel to session( stateless )
beans i.e. methods having functionality to do simple
processes, calculations etc where user session or transactions are of not much importance, will come in the category of STATIC methods ( like a methods that
converts given celcius value to farhnt value for some user use ). OR a premium calculator method for a given input on a policy and user data.
And all methods that need persistance data or rely heavily on user session and transaction ( i.e. fall parallel to Entity beans ) should be non static, non final and can be public, private or protected depending on design.