In my case, If I do shutdown on the graph, I get an exception of 
IllegalStateException: Database is closed.

This is 

On Monday, March 17, 2014 7:24:22 AM UTC-4, Andrey Lomakin wrote:
>
> 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] 
> <javascript:>>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] <javascript:>.
>> 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