Re: [orientdb] OrientDB with tomcat DB locking issue

2014-08-14 Thread Kareem Jabr
Hi Enrico, Thanks for your help after using the remote it is now working well without locking issues. I really appreciate it. On Tuesday, August 12, 2014 3:07:39 PM UTC+4, Enrico Risa wrote: > > Hi Kareem > > you call this: > > OServer server = OServerMain.create(); > server.startup(new File("/

Re: [orientdb] OrientDB with tomcat DB locking issue

2014-08-12 Thread Enrico Risa
Hi Kareem you call this: OServer server = OServerMain.create(); server.startup(new File("/usr/local/temp/db.config")); server.activate(); At the startup of your application, then from your application code you can use new OrientGraphFactory("plocal:d:/db/test"); For the db.config it is the c

Re: [orientdb] OrientDB with tomcat DB locking issue

2014-08-12 Thread Kareem Jabr
Thanks Enrico, I really appreciate it. Can I then call new OrientGraphFactory("plocal:d:/db/test"); after: server.activate(); I prefer doing this as below, OServer server = OServerMain.create();server.startup(new File("/usr/local/temp/db.config"));server.activate(); The documentation is

Re: [orientdb] OrientDB with tomcat DB locking issue

2014-08-11 Thread Enrico Risa
Hi Kareem you can use embedded server Take a look here. Let's you connect in plocal but you can use tool like Studio and Console https://github.com/orientechnologies/orientdb/wiki/Embedded-Server 2014-08-12 0:41 GMT+02:00 Kareem Jabr : > Plocal > Factory = new OrientGraphFactory("plocal:d:/db/

Re: [orientdb] OrientDB with tomcat DB locking issue

2014-08-11 Thread Kareem Jabr
Plocal Factory = new OrientGraphFactory("plocal:d:/db/test"); Factory.getTx() On Aug 11, 2014 4:54 PM, "Enrico Risa" 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 : > >> If I try to connect to the DB

Re: [orientdb] OrientDB with tomcat DB locking issue

2014-08-11 Thread Enrico Risa
Hi Kareem how do you open the database from tomcat server? plocal or remote? 2014-08-11 14:51 GMT+02:00 Kareem Jabr : > 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.IO

[orientdb] OrientDB with tomcat DB locking issue

2014-08-11 Thread Kareem Jabr
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