Hi all,
I was wondering, what's the correct way of using connections to an OrientDB
from my Java webapp? According to the OrientDB book, it's to use
ODatabaseDocumentPool.global(), which is deprectated. Currently, I just
create a new connection every time, something like this:
public void setUserName(String name) {
ODatabaseDocumentTx db = new
ODatabaseDocumentTx("remote:localhost/demo").open("demo", "demo")
db.command(new OCommandSQL("update User set name=?")).execute(name);
db.close();
}
But this seems hardly the best way. What's the idiomatic way of handling
connections in OrientDB?
Thanks,
Erik
--
---
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.