>
> Hello Shyam,
> In BMP entity beans, the callback methods are
> implemented. Open the
> database connection in ejbCreate() method and close it in ejbRemove()
> method.
>
Sorry, that is INCORRECT.
ejbCreate() and ejbRemove() calls are controlled by the application. It is
quite possible that they never be called at all.
Open and close the database connection in EACH business method that uses it.
- Avi
--
s/\be(\w+)/e-\1/g;
===========================================================================
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".