Hi Stefan,
I would suggest you do not use NoTx version of graph you have a risk to end
up in non consistent state after concurrent modification exception.

About you question so:

1.
  First step is correct.

2.
  Then you create database using
com.orientechnologies.orient.client.remote.OServerAdmin#createDatabase
and com.orientechnologies.orient.client.remote.OServerAdmin#existsDatabase
methods.
3.
 Connecting on plocal:<filepath> is correct.



On Wed, Jan 22, 2014 at 11:50 PM, <[email protected]> wrote:

> Hi,
>
> I must be mixing things here but after having used the OrientDB in
> embedded mode before I'm not understanding how the embedded server plays
> with the client connections and the new OrientGraphNoTx.
>
> What I need to do programmatically is:
>
>    1. Start the server (*works fine*)
>    server = OServerMain.create();
>    server.startup(getClass().getResourceAsStream("/orientdb-server.xml"));
>    server.activate();
>
>    2. Create a new/fresh graph database (*produces error*)
>    server.openDatabase("graph", "<database>", "<user>",
>    "<password>").create();
>    ---> Database '<database>' is not configured on server
>
>    3. Start using the new database  (*completely lost*)
>    - OGraphDatabasePool - is deprecated and not compatible with
>    OrientGraphNoTx
>    - Connecting on plocal:<filepath> seems wrong since I have the server
>    in place
>    - Connecting on remote:server seems wrong since I'm running the
>    embedded server
>
> Assistance is greatly appreciated.
>
> Regards,
>   -Stefan
>
> --
>
> ---
> 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/groups/opt_out.
>



-- 
Best regards,
Andrey Lomakin.

Orient Technologies
the Company behind OrientDB

-- 

--- 
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/groups/opt_out.

Reply via email to