I am trying to configure my application in a client-server objectdb setup via tcp/ip. So I first made sure that the remote objectdb server is running using telnet from my local.
$ telnet db.mydomain.com 6136 (worked fine, is able to connect...)
My db was configured below:
<server> <connection port="6136" max="100" /> <data path="objectdb://db.mydomain.com/db" /> </server>
On my application, I had configured my persistence unit like below.
<persistence-unit name="defaultObjectDBPersistenceUnit" transaction-type="RESOURCE_LOCAL"> <provider>com.objectdb.jpa.Provider</provider> <properties> <property name="javax.persistence.jdbc.url" value="objectdb://db.mydomain:6136/db/myapp.odb"/> <property name="javax.persistence.jdbc.user" value="admin"/> <property name="javax.persistence.jdbc.password" value="admin"/> </properties> </persistence-unit>
With all these configuration, I am still not able to connect on remote server. I am pretty sure that defaultObjectDBPersistenceUnit was used on my app. Also, if my app was able to connect to the remote db, it should have create the db files on db server.
So what am I missing here?