How to use an embedded server?

Hi all,

as I understand using an embedded instance can be done either

OServer server = OServerMain.create();

or

OrientDB orientdb = new OrientDB("embedded:./databases/", null, null);

What’s the way to go?

Also with the OServer approach I cannot use a connection pool like ODatabasePool right?

Regards,
Joachim

Hi @joachimmueller

It depends on your needs. With OrientDB() you have an embedded database layer, but you do not have a full server running, while with OServer you have a full server with remote and HTTP interfaces running, so you can also access the db in remote.

Thanks

Luigi