When you are using a web application (Servlets/JSP) to
call EJB - you have to make sure that a calls to a
single EJB should not span multiple pages. If this
happens,you might some times never visit a page or
reload couple of times, which make more open
connections.


gopal
--- Simon Blake <[EMAIL PROTECTED]> wrote:
> Absolutely do NOT do this!
>
> create is called on insert of the new row in the
> table (RDBMS speak I know),
> remove is called on delete. Your mechanism would
> have a new database
> connection for every single row in the table!
>
> ----- Original Message -----
> From: "Nittle Gupta" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, June 22, 2000 11:27 PM
> Subject: Re: [EJB-INT] Database Connection
>
>
> > Hello Shyam,
> >         In BMP entity beans, the callback methods
> are implemented. Open
> the
> > database connection in ejbCreate() method and
> close it in ejbRemove()
> > method.
>
>
===========================================================================
> 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".
>


__________________________________________________
Do You Yahoo!?
Send instant messages with Yahoo! Messenger.
http://im.yahoo.com/

===========================================================================
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".

Reply via email to