Great, thanks again. I'm assuming that if I want to use the DB in Document mode vs. Graph, the code is similar.
On Mon, Mar 31, 2014 at 3:54 PM, odbuser <[email protected]> wrote: > PS, if in the future you want to use Embedded mode, you don't have to have > a listener in the configuration. The configuration isn't only for opening > various ports but has other capabilities such as scheduled backups. > > > On Monday, March 31, 2014 3:51:57 PM UTC-4, odbuser wrote: >> >> Simply use the code in my previous post to open the database. It will >> not open any ports. It's purely file system access. >> >> The configuration (either xml or programmatic) is only used when starting >> the server (either via the server.sh/bat script or programmatically >> using Embedded, etc). In your case, you are not starting any server. You >> simply need to use the plocal file system access using the code from my >> previous post. >> >> >> On Monday, March 31, 2014 2:12:34 PM UTC-4, Michael Campbell wrote: >>> >>> Thanks, I think I'm understanding you, and yes, I don't want ANY >>> listeners; I only want file-system access without a separate daemon service >>> running. >>> >>> I'll play around a bit and see what I can come up with. >>> >>> >>> On Mon, Mar 31, 2014 at 2:10 PM, odbuser <[email protected]> wrote: >>> >>>> Yes, I use embedded mode but for your use case it is unnecessary. Just >>>> use plocal access as Luca mentioned. >>>> >>>> So just use the following form or one of the other constructors if your >>>> are in <=1.6.3 >>>> OrientGraph g = new OrientGraph("plocal:{pathToDB}") >>>> >>>> For >=1.7rc2 >>>> OrientGraphFactory factory = new OrientGraphFactory("plocal:{pathToDB}" >>>> ); >>>> graphNoTx = factory.getNoTx(); >>>> graph = factory.getTx(); >>>> >>>> You would normally use embedded when you want file system access inside >>>> of your app (using plocal) AND external remote access through a network >>>> protocol of ONetworkProtocolBinary (allows remote:/db type access) or when >>>> you want several listeners open with different configurations. I don't >>>> think this applies to your needs at the moment. >>>> >>>> -- >>>> >>>> --- >>>> 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. >>>> >>> >>> -- > > --- > 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. > -- --- 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.
