About setup

forum_thread

Replication Error

Hello! I try to get a replication setup working on two test servers. So i copied my test database to one of them, enabled recording and started odb. The dbname.odr folder got created so i think everything is ok. Afterwards i added the replication tag to the configuration of the second server and started it. The second server starts complaining instantly with the following Exception: ... Hello! I try to get a replication setup working on two test servers. So i copied my test database to one of them, ...

 
forum_thread

Password in Embedded Mode?

Is there a way to setup a database file that will be accessed in embedded mode, such that it is locked with a password.  Thereby making it impossible to use ObjectDB to access the contents of the file without providing the correct password when obtaining a connection.  In my case, I'm interested in obtaining a JPA connection:... Is there a way to setup a database file that will be accessed in embedded mode, such that it is ...

 
forum_thread

Unable to store AtomicInteger

In the docs, all serializable types should be persistable. However, when I tried to persist a field of type AtomicInteger, I got the following message: Message: Failed to commit transaction: Attempt to store an instance of a non persistable type java.util.concurrent.atomic.AtomicInteger I am using ObjectDB 2.6. Is this a bug? ... is to store an int then from the entity call an extra setup function in @PostLoad, which is very clunky in my opinion...is there ...

 
issue

objectdb.home for client/server

Currently, we do need to manually setup the objectdb.home property eventhough we're working on client/server mode. However, without setting this in our client, he complains about the missing objectdb.conf. Why is this required? Can't the server deliver it? Most of the time we do not even know where our object db home is located at as we might have multiple server instances running on multiple machines so all we do really need to supply should be the server connection url and no objectdb.home..   Alex ... Currently, we do need to manually setup the objectdb.home property eventhough we're working on client/server ...

 
forum_thread

Pessimistic Lock Timeouts setting

Hi,   I realise that JPA2 doesn't necessarily define a standard API way for Lock Timeouts. However, there is a standardised query 'hint' that can be setup to make the underlying DB lock a record for a specific time. The hint property is: "javax.persistence.lock.timeout" ... there is a standardised query 'hint' that can be setup to make the underlying DB lock a record for a specific time. The hint ...

 
forum_thread

Jboss 6 persistence.xml startup error

Hi,   I'm trying to migrate a small EJB 3.1 project from Postgres to ObjectDb to test out feasibility, but I keep getting stuck on setting up the persistence.xml on JBoss 6 AS.   Here is my setup: ------- Start persistence.xml ------- ... up the persistence.xml on JBoss 6 AS. Here is my setup: <persistence version = "2.0" xmlns = ...

 
forum_thread

Connecting to a remote objectdb server

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> ... to configure my application in a client-server objectdb setup via tcp/ip. So I first made sure that the remote objectdb server is ...

 
forum_thread

Merge with Parent/Child entities not possible

Can you please tell me why the following unit test ends with "[ObjectDB 2.5.7_02] javax.persistence.RollbackException"? ... entityManager ;   @ Before public void setUp ( ) throws Exception { entityManager = ...

 
forum_thread

Like fails if both underscore and percent are used

When using a like query that has both _ and % in it, ObjectDB seems to fail. Here is a unit test to demonstrate:   ... em ;   @ Before public void setUp ( ) { emf = Persistence . ...

 
forum_thread

Intermittent Exception "Attempt to update types in read only mode"

I have a master/slave(s) setup and I am finding on the slaves that the slave client will get this message when trying to establish an EntityManager to the slave: ... I have a master/slave(s) setup and I am finding on the slaves that the slave client will get this ...