ObjectDB ObjectDB

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?

edit
delete
#2
ObjectDB Support
edit
delete
#3

thanks, works for me.

edit
delete

Reply

To post on this website please sign in.