You should use shutdown as usual to put connection back to the pool.
And call close only during application shutdown.


On Mon, Mar 17, 2014 at 1:14 PM, <[email protected]> wrote:

> Hi,
>
> A have implemented a connection pool based on this:
> http://www.orientechnologies.com/new-orientdb-graph-factory/
>
>    OrientGraphFactory factory = new
> OrientGraphFactory("plocal:/var/www/data/" + tenant).setupPool(1, 10);
>    ...
>    OrientGraph graph = factory.getTx();
>
> The documentation implies that calling factory.close() to free resources,
> can that that right?
>
> Should I not be able to close/return one graph (graph.close() /
> graph.release()) at a time?
>
> Thank you,
>   -Stefán
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "OrientDB" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Best regards,
Andrey Lomakin.

Orient Technologies
the Company behind OrientDB

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to