Hello Shyam,
In BMP entity beans, the callback methods are implemented. Open the
database connection in ejbCreate() method and close it in ejbRemove()
method.
Nittile.
> -----Original Message-----
> From: Shyam Sankar S. [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, June 22, 2000 4:12 PM
> To: [EMAIL PROTECTED]
> Subject: Database Connection
>
> Hi all,
>
> We are working on Bean Managed Persistent Entity Beans. We got a mail now
> from our DBA that there are around 200 sessions open in the Oracle Server.
> This could be because our connection.close statements don't work or maybe
> don't get called. Could anyone tell me which is the right place in an
> Entity Bean to:
> 1. Open Connection
> 2. Close Connection
>
> Presently, Connection is opened in the setEntityContext and closed in
> unsetEntityContext. unsetEntityContext is not called explicitly.
>
> ==========================================================================
> =
> 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".
===========================================================================
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".