About URL connection

manual

Database Connection using JPA

Describes the main JPA interfaces: EntityManagerFactory, EntityManager and EntityTransaction.... EntityTransaction Overview A connection to a database is represented by an EntityManager ... closes the database file. Connection URL The createEntityManagerFactory ... As an extension, ObjectDB enables specifying a database url (or path) directly, bypassing the need for a persistence unit. Any string ...

 
manual

Database Replication and Clustering

Replication enables maintaining up to date version of an ObjectDB database on multiple nodes.... configuration : <server > <connection port = "6001" max = "100" /> <data ... "$objectdb/db-files" /> <replication url = "objectdb://localhost:6000/test.odb;user=a;password=a" /> ...

 
manual

JPA Persistence Unit

Explains how to define a JPA persistence unit in the persistence.xml file.... <property name = "javax.persistence.jdbc.url" value = "objectdb://localhost/my.odb" /> ... JPA 2 defines standard properties for specifying database url, username and password, as demonstrated above. XML Mapping Metadata ...

 
manual

Server Configuration

Explains how to set a JPA/JDO database server using ObjectDB, the fast Java object database for JPA/JDO.... element: <server > <connection port = "6136" max = "0" /> <data ... /> <!-- <replication url="objectdb://localhost/test.odb;user=admin;password=admin" /> --> ... is specified it also has to be specified by clients in the url connection string when connecting to the database (as explained in the ...

 
forum_thread

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: <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");... conf file set as: <server > <connection port = "6136" max = "100" /> <data ... However, I'm not sure about the connection url for the code, and for the explorer. I tried this: ...

 
forum_thread

How to change properties in urls2.xml?

Hello, I am using objectdb in an embedded case with network private access to each database. I see it exists a file name "urls2.xml". <url><main>/var/lib/tomcat7/db/myDb.odb;user=admin;password=admin</main><alt>objectdb://127.0.0.1:38059/;user=$code;password=a2e54ea3-d889-41a7-953c-dabc42877742</alt></url> This file is autogenerated by objectdb. And it describes the locals databases url and their port / user / password properties. ... I see it exists a file name "urls2.xml". <url > <main > ... </alt > </url > This file is autogenerated by objectdb. And it describes ... database local url doesn't work. ( Tomcat says "Connection refused" ) <properties > <property ...

 
manual

Obtaining a JPA Database Connection

Shows how to use Java/JPA to connect to the ObjectDB Object Database. In JPA a database connection is represented by the EntityManager ... .objectdb is considered by ObjectDB to be a database url rather than a persistence unit name. The $objectdb special prefix ... ; The EntityManager instance represents a connection to the database. When using JPA, every operation on a database is ...

 
forum_thread

How force always recreate database on redeployment.

Is there some easy way to force recreation/deletion of the current database on deployment of a web application (to Glassfish). My web application uses a @Singleton @Startup bean to create and persist a test model each run. I keep getting models on top of each other on rerunning my web application. Currently, to avoid multiple models in the database, I have to undeploy from Glassfish, stop the server, delete the database file, re-start the objectdb server, re-run the web app, which is tedious. ... if its file is not locked by Glassfish. See the connection url section in the manual  and relevant configuration . See ...

 
forum_thread

Objectdb Server Mode set up with glassfish

Hi I'm new to Java, glassfish and objectdb, so please forgive my ignorance. I have a glassfish server working with the embeded mode of objectdb. I now want to set up objectdb in server mode. I have run the server.exe but I don't know what to do next ?!  Which jar far do I need to include in my project ? How do I configure my persitence.xml file ? Do I need to set up something in Glassfish ?   Thanks Paul Newman ... JAR. The only difference is the database connection url . If specified in the persistence.xml a client-server url could be specified as follows: <?xml version = "1.0" ...

 
issue

Automatic Switch to Replicated Server Limitations

ObjectDB supports master-slave replication, with the ability to switch connections automatically when one server goes down to another server, by specifying a composite url. Currently this feature has the following limitations: ... when a server goes down, by specifying a composite url . Currently this feature has the following limitations: The first server in the composite url has to be available when connecting. Additional servers are only used ... address these issues and improve the ability of automatic url switch. ObjectDB Support ObjectDB - Fast ...