Plocal Factory = new OrientGraphFactory("plocal:d:/db/test"); Factory.getTx() On Aug 11, 2014 4:54 PM, "Enrico Risa" <enrico.r...@gmail.com> wrote:
> Hi Kareem > > how do you open the database from tomcat server? > > plocal or remote? > > > > > 2014-08-11 14:51 GMT+02:00 Kareem Jabr <kareem.j...@gmail.com>: > >> If I try to connect to the DB thru studio from the browser >> >> http://localhost:2480/studio/index.html#/database/test/browse >> >> *it shows this in the log:* >> >> java.io.IOException: The process cannot access the file because another >> process has locked a portion of the file [ONetworkProtocolHttpDb] >> >> Since I am already connected to the same database "test" from tomcat >> server. I think whoever I open first locks the DB so other app won't be >> able to access the DB. I need to access the DB from studio and code at the >> same time for many reasons. >> Please guide me to a best practice way to handle connections and DB >> locking for my case. >> >> Thanks, >> Kareem >> >> -- >> >> --- >> 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 orient-database+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. >> > > -- > > --- > You received this message because you are subscribed to a topic in the > Google Groups "OrientDB" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/orient-database/ny6WHJZ7_Ok/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > orient-database+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- --- 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 orient-database+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.