Home » Support » Forum » connect with server

connect with server

#1

how to connect the data base on a remote server

and share odbc in object db

#2

how to publish the JPA database on  server and make client in the network can share the data base

i want to know the right connection string.

i used

"Map<String, String> properties = new HashMap<String, String>();
  properties.put("javax.persistence.jdbc.user", "admin");
  properties.put("javax.persistence.jdbc.password", "admin");
 
  emf = Persistence.createEntityManagerFactory("objectdb://192.168.0.300:6136/myDbFile.odb", properties);
  em = emf.createEntityManager();" where emf is my EntityManagerFactory & em is my EntityManager

192.168.0.300 is my server IP

 

#3

Just run the server. The database will be created automatically if it doesn't exist.

You can configure the location of the database files by setting the server configuration.

 

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

Post Reply

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