Database connection url

#1

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:

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

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?

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

thanks, works for me.


Post Reply

To post a reply and/or subscribe to update notifications - please login