>
>  In my bean code I have a singl public Connection object
> which is used by
> all the methods. I am opening the connection in the create()
> itself and
> closing it by calling a function called
> closeall(). I am just unable to find the bug. Can some one
> hlep me in this
> regard please. Help will be highly appreciated.
>
That's the bug. Open and close the connection in each method. Be sure to use
try/finally. Don't keep it in a global object.


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

Reply via email to