In my opinion developers of OrientDB won't be able to advice you what to 
do. Also you provided not too much information about your environment.
Do you use any framework? Do you use any web server and etc? 

Let's say you have Tomcat only and you use servlets. I would initialize 
OrientDB database pool in application initialization/deployment listener 
and put it into application context. And then in your DAOs I will call 
getTx() or aquire() each time. Something like this.

On Wednesday, 9 July 2014 12:48:46 UTC+1, Argh Skwidge wrote:
>
> So I've just started playing with OrientDB and I want to embed it in a 
> Java web app. That part has proved fairly easy, but I'm a little confused 
> about how best to manage configuration.
>
> Essentially I've followed the filter pattern shown at 
> https://code.google.com/p/orient/wiki/JavaWebApps . This gives me an 
> OrientGraph instance per request object, which is great. These instructions 
> don't really cover database-wide configuration though, of the type I would 
> put in an orientdb-server-config.xml file in other circumstances.
>
> I did find 
> https://github.com/orientechnologies/orientdb/wiki/Embedded-Server and 
> https://github.com/orientechnologies/orientdb/wiki/Configuration which 
> seem to be two different ways of doing the same thing - global 
> configuration. Both pages were last edited on the same day.
>
> How should I be doing global configuration in my web app?
>

-- 

--- 
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