No answer?
Here is my code I use in every thread now and still getting this error:
val pool = new OPartitionedDatabasePoolFactory
pool.get("remote:" + server + "/" + dbname,login,pass)
val db = Orient.getInstance.acquire()
db.activateOnCurrentThread()
ODatabaseRecordThreadLocal.INSTANCE.set(db)
Thanks for help
понедельник, 17 августа 2015 г., 17:19:53 UTC+3 пользователь Sergey Dashko
написал:
>
> Hello.
> As I understand OPartitionedDatabasePoolFactory usage should be safe with
> multiple threads.
> I've made static method with this code
> var pool = new OPartitionedDatabasePoolFactory
> return pool.get("remote:" + server + "/" + db,login,pass)
>
> Then in needed place I make acquire and then close.
> But still getting this exception.
> What wrong with it code. How it can be fixed?
> I use it in Play Framework
>
--
---
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.