Hi,
You can use $ as separator. Try:

project1$orientdb_data
project2$orientdb_data

Best Regards,

Luca Garulli
Founder & CEO
OrientDB
<http://t.sidekickopen36.com/e1t/c/5/f18dQhb0S7lC8dDMPbW2n0x6l2B9nMJW7t5XYg3MhRp0VdV39R8qSMPYW5vw6HK56dLWCf96gZDg02?t=http%3A%2F%2Forientdb.com%2F&si=6613501067132928&pi=ca6291b0-8ae1-4dc0-f0a0-5993126afd9c>


On 6 February 2016 at 18:36, Tai Hu <[email protected]> wrote:

> Hi,
>     I am implementing an application which is using an embedded OrientDB.
> Based on our requirement, each project in my application has its own folder
> (with its own local OrientDB database). Inside of app, we allow user to
> switch to different project. I tried the following code
>
> Folder structure
>
> project1/orientdb_data
> project2/orientdb_data
>
>
> In code,
>      public static OrientGraphFactory getFactory(String projectPath) {
>                if (factory == null)
>                     factory = new OrientGraphFactory("plocal:" +
> projectPath);
>
>                 return factory;
>       }
>
>
>        public static void switchProject(String projectPath) {
>                  if (factory != null) {
>                        factory.close();
>                        factory = null;
>                   }
>         }
>
> Please do not worry about thread safe issue, I already took care of it in
> the actual code. The problem here is if factory is initialized to use
> "project1/orientdb_data", later on I created a new OrientGraphFactory with
> "project1/orientdb_data". There is no error reported, but
> OrientGraphFactory is still using "project1/orientdb_data". I am on
> OrientDB 2.2.beta
>
> Thanks.
>
> --
>
> ---
> 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.

Reply via email to