This week's book giveaways are in the Refactoring and Agile forums. We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line! See this thread and this one for details.
hello all, i want to retrive data and put it into in memory. i am defined a method for it. i am using ejbcreate() of stateless session bean. can i call the method directly from ejbcreate()
posted 11 years ago
Hi, You have not mentioned anything about your server. Any way you can access the database directly from ejbCreate() but it is STRONGLY RECOMMENDED that you don't do so. Make a helper class which has a function defined that accesses the database and returns result to your ejbCreate(). Call this function from your ejbCreate(). If you have any doubt, please tell me. Abhishek