About connection

forum_thread

JBOSS AS7 7.1.1 - Entity not persisted and createNamedQuery fire exception

I'm trying to have the guestbook example running in the following environment: jboss as 7.1.1 final oracle jdk 1.7.0_04 maven 3.0.4 objectdb 2.4.0_04 installed as a module of jboss No IDE is used for building the Guestbook.war only maven.   My GuestDAO code is as follows: ... class GuestDao { // Injected database connection: @ PersistenceContext ( unitName = ... class GuestDao { // Injected database connection: @ PersistenceContext private EntityManager ...

 
forum_thread

Object DB vs EclipseLink/TopLink: Unloaded relationships in detached entities

This topic is for those considering migrating from EclipseLink JPA or TopLink to ObjectDB JPA. ... Detached Objects get the connection need to traverse the LAZY relationship from the EntityManagerFactory ... to use it as long as the EntityManagerFactory is open. The connection used in not the transactional one and when you want to use the ...

 
tutorial

Step 3: Add a Main Class

Explains how to add the JPA tutorial Main class in Eclipse.... args ) { // Open a database connection // (create a new database if it doesn't exist yet): ... }   // Close the database connection: em. close ( ) ; emf. close ...

 
forum_thread

How to define database structure and insert some initial objects from scratch

Hi from Spain! We're evaluating ObjectDB and we have some questions: - How can we create the initial database structure of our application? We know objectdb is all about objects and probably not need initial structure like tables, but how can we populate some "tables" with initial data from a script? In SQL world we have scripts like "insert into..." - Can we use main objectdb.jar library as jdbc driver for ETL software like Kettle? How about migrating data from another database system? ... ) {   // Open a database connection // (create a new database if it doesn't exist yet): ... ) ;   // Close the database connection: em. close ( ) ; emf. close ...

 
forum_thread

ObjectDB Explorer very slow with remote con

Hi! I started to use ObjectDB Explorer to administrate a remote DB (on a server), but it seems to be very slow. The database is quite empty now, just between 5-20 records / entity, but it's still very very slow. That's the only thing that is slow on my server... How can I speed it up? ... try accessing the database remotely to see, if you provide connection details. ObjectDB Support ObjectDB - ... it wasn't Explorer's fault. By having just 1 SSH connection to the VPS, it works at an acceptable speed. Sorry and ...

 
forum_thread

Mismatch client-server protocol prefix

Hello! We migrated one of our legacy webservices to Spring Boot/Spring MVC. Now i have a strange problem. At first the app runs perfectly for a couple of hours. After that it stops working and I get the following exception: ... happens on the node which also runs the DB server. -> Connection on localhost We also have a Spring Boot/Vaadin Webapp which ... also been reported due to other issues. Since the same connection and sockets are used for more than one request, failure to read a ...

 
forum_thread

Database server with an application

Hi, I read the database server section of the manual - and it looks like it is not possible to connect to a Database embedded with an application from another application - is that correct? The way to go is to have the DB server running by itself and then the 2 other applications connecting to it. Is that correct? Thanks #1 2014-06-23 08:22 Hi, I read the database server section of the manual - and it looks like it is not possible to connect to ...

 
api-jdo

getConnectionDriverName()

Get the driver name for the data store connection.(Method of javax.jdo.PersistenceManagerFactory)

 
forum_thread

OutofMemory error with Object DB 2.0

Hi, I am getting the below OutOfMemoryError after I have migrated from objectdb 1.0 to 2.0 The application works with 256MB heap size with objectdb 1.0  But on 2.0 even with max heap size of 1024MB, I get this error. The application reads xml file of around 1GB and creates a new odb file and inserts 200 records at a time. ... >   <server > <connection port = "6136" max = "100" /> <data ...

 
forum_thread

Using multiple databases

Is it possible for an ObjectDB PersistenceManger/EntityManager to connect to more than one database at a time? Also, can objects in one database reference objects in another database (e.g. through globally unique identifiers)? ... databases as needed at the same time but each database connection requires a separate EntityManager / PersistenceManager . ...