About url

forum_thread

best practice for DB recovery

Hi, I'm trying to come up with the best approach for supporting some kind of hot standby for my master DB. ... your web application to the slave (not by using a dual url, but by using only the master url and when it fails switching to the slave url by your DAO layer). If ...

 
forum_thread

Replicated cluster recovery

If I create a replicated database cluster as per http://www.objectdb.com/java/jpa/tool/replication what is the behaviour of the master database after a failure? For example, say I have MasterDB and SlaveDB in the cluster. If MasterDB goes offline the application will automatically switch to SlaveDB. When MasterDB comes back online it will have missed any activity that occured during the downtime. ... via PMF? Switching is automatic - between a main url and backup urls, which may also reference databases on different nodes. ...   hare is the connection url: ...

 
forum_thread

ObjectDB within a resource adapter module and Java EE Connector Architecture

Has anybody managed to use ObjectDB in a resource adapter module in accordance with the Java EE Connector Architecture so that it may be packaged separately from (but used by components of) an EJB Module after the pattern of the classic EAR File structure as illustrated in the Java EE 7 tutorial in Figure 5-1 EAR File Structure ? ... unit name (which can also be an ObjectDB database url) in the unitName parameter of @PersistenceContext , but this seems ... logical path with a parameter (similar to $objectdb in the url) with a value from a system property. Check what can work for you and if ...

 
forum_thread

Modifier operations

Hi, Today I was reading about different NoSQL databases. One of those database - MongoDB - has a very nice feature, especially for web applications - modifier operations. The whole trick for those operations is to change some value in object without pulling this object from database. So for example we have class: public class WebVisit { public String url; // key public int visitsCount; } As for now I have to pull this class from database: ... class WebVisit { public String url ; // key public int visitsCount ; } ... visit = em. find ( WebVisit. class , url ) ; and increment counter: visit. visitsCount ...

 
forum_thread

lockfiles in client/server mode

i have an objectdb server running on localhost as user "objectdb", spawned like so: java -server -cp /usr/local/share/objectdb/objectdb.jar: com.objectdb.Server -conf /etc/objectdb/objectdb.conf start it has naturally created and taken ownership of /tmp/ObjectDB. ... in src/main/webapp/META-INF/persistence.xml with a jdbc URL that looks to me as though it ought to connect to the server rather than ... mode. i have also tried creating the EMF with the explicit URL. when running `mvn test`, the exception is: ...

 
forum_thread

BIRT plugin: Trouble with Client/Server connection

I am having trouble setting up the birt points.odb sample with a client/server connection. I can connect to points.odb with the explorer.  I added a "Data Source" that works fine with local file.  The connection using the url fails the ping test.  I get (Failed to connect to server localhost:6136) The following is my setup: Dev Versions:     MyEclipse Enterprise Workbench - 12.0.0.me201311281640         -Eclipse platform - 4.3.1.v20130911 ... with local file.  The connection using the server url fails the ping test.  I get (Failed to connect to server ... Configurations:     connection URL: objectdb://localhost:6136/points.odb;user=admin;password=admin ...

 
forum_thread

Replication error - parsing objectdb config

I'm trying to replicate a database using the following config: <server>   <connection port="6136" max="100" />   <data path="$objectdb/db-files" />   <replication url="objectdb://localhost:6126/DEV1/NewMessagePipe.odb;user=admin;password=admin" /> </server> #1 2011-04-12 16:36 I'm trying to replicate a database using the following config: <server>   <connec ...

 
forum_thread

JPA 2.1 and AttributeConverter

Hello :-). Are there any plans to support JPA 2.1? I would wish to have a support for @AttributeConverter. ... make own adapter for storing property, which is File and URL class. edit ... You can use a transient field for the File or URL and convert it from/to byte[] or String in JPA lifecycle events ...

 
forum_thread

Replication issue, Replayer failing due to NullPointerException.

I'm getting replication errors and upon trying to play the replayer I get a NullPointerException which i'm also seeing in the slave logs when it's trying to replicate... ... inactivity-timeout = "0" /> <url-history size = "50" user = "true" password = "true" ... inactivity-timeout = "0" /> <url-history size = "50" user = "true" password = "true" ...

 
forum_thread

_PersistenceException: Failed to open file

Hello! I am experiencing a problem: JBWEB000309: type JBWEB000066: Exception report JBWEB000068: message com.objectdb.o._PersistenceException: Failed to open file '/Users/username/JBossSoftware/jboss-eap-6.2/bin/$objectdb:/localhost:8080/db/guests.odb' the path in persistence.xml is : <property name="javax.persistence.jdbc.url" value="$objectdb://localhost:8080/db/guests.odb"/> What could be the problem?   ... <property name = "javax.persistence.jdbc.url" value = "$objectdb://localhost:8080/db/guests.odb" /> ... 2014-04-25 15:22 The url that you were trying to use is invalid. Please notice the ...