ObjectDB ObjectDB

Database connection url


I'd like to run a database called db1.odb on port 6136, and simultaneously open it in the explorer.

I left the conf file set as:

    <connection port="6136" max="100" />
    <data path="$objectdb/db-files" />

However, I'm not sure about the connection url for the code, and for the explorer.

I tried this:

Transactor.emf = Persistence.createEntityManagerFactory ("$objectdb/db1.odb");

However, I don't see an database named db1.odb created under db-files/ nor can I connect to it from explorer.

So, how does one set up odb as a server, and how does one connect to it from code, and from explorer?

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)

thanks, works for me.

Post Reply