About url

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

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

Netbeans-Friendly Javadocs

Is there a .jar or URL that I can use to get javadocs that work within Netbeans code prediction popup boxes? I tried attaching the URL: http://www.objectdb.com/api/java/jpa/EntityManager to the EntityManager object in Netbeans but it gives me the error: Javadoc not found. Either Javadoc documentation for this item does not exist or you have not added specified Javadoc in the Java Platform Manager or the Library Manager. ... Is there a .jar or URL that I can use to get javadocs that work within Netbeans code prediction popup boxes? I tried attaching the URL: http://www.objectdb.com/api/java/jpa/EntityManager to the ...

 
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

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

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" ...

 
api-jpa

getClassLoader()

Returns ClassLoader that the provider may use to load any classes, resources, or open URLs.(Method of javax.persistence.spi.PersistenceUnitInfo)

 
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

_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 ...

 
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 ...