I have created a java web application and used ObjectDB in client Server mmode. It worked as per my expection.
In Client server mode I used
Now to switch to embedded mode, I have tried following things
Persistence.createEntityManagerFactory("objectdb://localhost/myDB.odb"); //Gives Failed to connect to server localhost:6136
When I use
Persistence.createEntityManagerFactory("$objectdb/db/myDB.odb"); // Connect but not fetches the object stored in Client Server mode.
kindly provide information how to switch from client server mode to embedded mode. As I already have plenty of data in Client Server mode I want to use it.