Some of your dilemma are addressed in the following article, http://www.javareport.com/html/from_pages/article.asp?id=799&mon=4&yr=2001
-karthik. Rupesh More wrote: > Hi Everybody , > > I my project I have written a BMP which deals with two tables in > Oracle. > > I am opening the connection to the database in the setEntityContext() > method using it in all the database routines and then closing it in > the unSetEntityContext() method.Its working fine. > > But my PM says that its not effiecint to open the connection in > setEntityContext() method, keeping it live and then closing it at the > end in unSetEntityContext() > > I have got large no. of database routine methods, will it affect > performance or working of my BMP if I open & close the conn in every > method .........How is it done normally .....what is the convention > > what the EJB specs says about this > > If anybody has an idea please let me know > > Thanks in Advance > > Rupesh > > > > > ----------------------------------------------------------------------- > Do You Yahoo!? > Send FREE video emails in Yahoo! Mail. =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
