Skip to content

OrientDB connections not getting closed on close API #10039

Answered by tglman
arpitdd123 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

could you use instead ODatabasePool or even not use the pool and use the OrientDB context like:

    OrientDB orientDB = new OrientDB("embedded:/path/to/databases/", OrientDBConfig.default());
    try (ODatabaseSession session = orientDB.open("database", "user", "password")) {
    
    }
    orientDB.close();

the OPartitionedDatabasePool has been deprecated and require open and close of the session to be done exactly on the same thread.

Regards

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tglman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants