You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-user@db.apache.org by "Bernt M. Johnsen" <Be...@Sun.COM> on 2006/11/01 08:34:17 UTC

Re: What is correct way of closing an embedded connection ?

>>>>>>>>>>>> legolas wood wrote (2006-10-31 01:53:52):
> Hi
> Thank you for reading my post
> what is proper way of closing a connection when we use an embedded Derby 
> database?

connection.close();

> is it ok if we create several connection against  an Embedded Derby
> , 

yes

> how will be the resource consumption ?

I would say that it would depend on what you're doing. The Connection
itself does not contribute that much to the resource consumption.

-- 
Bernt Marius Johnsen, Database Technology Group, 
Staff Engineer, Technical Lead Derby/Java DB
Sun Microsystems, Trondheim, Norway