About console

forum_thread

Performance problem

Hi, we have a strange performance problem with ObjectDB 2.5.3_01 and JBoss 7.1.1. We have two ObjectDB databases on one ObjectDB server. Production database is running 5-10 times slower than test database. Their size and number of records are almost identical. When running production database in separate test environment its speed is very good. We did a performance analysis on our 2 linux servers one running JBOSS and other running ObjectDB. - CPU utilization of JBOSS server is max 5-10% (per core)... The test database on the production server from a simple console test program. The production database on the production server from a simple console test program. and if possible, all the above also on the ...

 
forum_thread

Modifying something with Explorer -> app JPQL with Enum doesn't work anymore

Hi! Scenario: Copy attached DB into localhost ObjectDB server (I'm running 2.5.1_03). Open attached project JavaEE Maven with NetBeans (7.4 beta in my case). Start ObjectDB on localhost as server. Run project on Apache Tomee 1.5.2 standard. Take a look at NetBeans' output to see how many entities are found with field type GOOD. There are 2 ways generate the bug: ... Immediately after a new number is printed in the console, open ObjectDB Explorer, modify an entity's type from GOOD to BAD, ... please isolate the issue further into a simple minimal console application, as specified in the posting instructions . You should ...

 
forum_thread

Show Sql/Jpql

Is there a way to show the executed Sql/Jpql in the console? ... Is there a way to show the executed Sql/Jpql in the console? edit ... in ObjectDB configuration to write logging also to the console: <log path = "$objectdb/log/" max = "8mb" ...

 
forum_thread

Remove a modified entity cause an optimistic lock exception

Hello, the following examples load and modify an entity, and load and remove the same entity. The first example 'SetAndRemoveIssue.java' is a simple java program which executes without errors. The second example is an OSGi program which fails with an optimistic lock exception. Both examples are equivalent, please execute SetAndRemoveIssue.java (in the OSGi example as a plugin-test). Can you explain the optimistic lock exception? ... progress very slow. Thanks for writing a minimal Java console test case. However, since it behaves differently and you may need the ... Committing the changes. The console application is the same but without the flush. Accordingly the ...

 
forum_thread

LAZY @ManyToOne field functions as EAGER

In the code example below (also attached) I would like to understand why I am able to print to console a lazy @ManyToOne field after the entity manager closes. There is a switch DO_VIEW_BEFORE_CLOSE, and when it is true the fields are accessed and output before the finding entity manager closes and as expected both a LAZY @ManyToOne field and an EAGER @ManyToOne field are viewable: b.cLazy:{C}[2]"cLazy"
 b.cEager:{C}[3]"cEager" ... would like to understand why I am able to print to console a lazy @ManyToOne field after the entity manager closes. There is a ... package com. greensoft . objectdb . test . console ;   import javax. persistence . *;   /** * * ...

 
forum_thread

500Mb ObjectDb database opening issue

Hi, I have observed that 500 Mb objectDb database opening time is very slow (~3 seconds) for following code m_EntityMgrFactory = Persistence.createEntityManagerFactory( "objectdb:" + aFilename ); m_EntityManager = m_EntityMgrFactory.createEntityManager(); Does exist any way to speed-up open time for big databases? Definitely, it's too long for 500 Mb database! ... a simple test case that demonstrates the issue, i.e. a console application with your entity classes that just open the database? ... the following code on your computer (e.g. as a simple console application): Enumeration e = NetworkInterface. ...

 
forum_thread

Possible cause for "Enhancement of type ... is old and cannot be used"

We get the following log: ... this new issue report (and for which I provided a console test case link this evening): Issue #282 - ObjectDB-2.6.9: ...

 
forum_thread

Eclipse/JPA database tutorial

Hello Sir/Madam, I followed all the steps correctly as given in the tutorial. But when i run it , I'm getting an error saying, the resource not available. Please help regarding the issue as soon as possible. Thank you. ... Please provide more details: Is it the console tutorial? a web tutorial? When exactly do you get the ... In addition, check if there are exceptions in the console or in the server log. ObjectDB Support ...

 
forum_thread

Stalling on "run File" in Netbeans when using -javaagent:lib/objectdb.jar

This is not a question to ObjectDB support, it is a discussion item for ObjectDB users who use Netbeans IDE. I am encountering the following problem when using enhancement with Netbeans IDE 7.1. To enable enhancement I use the following in the Project Properties dialog Run section under VM Options: -javaagent:lib/objectdb.jar where there is a lib folder under the main project folder. This works fine for a Netbeans Web Application (that runs in Glassfish as web application container). ... container). However I am having problems with a console-based Netbeans Java Application with a nominated Main class to run, and ... development but not necessary for running simple console application tests), but it is difficult to simply switch JRebel on and ...

 
forum_thread

Mapped (Inverse) LAZY @OneToMany vs. Unmapped LAZY @OneToMany

In the code example below (also attached) I would like to understand why I am able to print to console a lazy @OneToMany mapped field after a finding entity manager closes. There is a switch DO_VIEW_BEFORE_CLOSE, and when it is true the fields are accessed and output before the finding entity manager closes and as expected both a mapped @OneToMany list and an unmapped @OneToMany list are viewable: a.listA_mapped:[{A}[4]"ownedElement1", {A}[5]"ownedElement2"] a.listB_unmapped:[{B}[2]"b1", {B}[3]"b2"] ... I would like to understand why I am able to print to console a lazy @OneToMany mapped field after a finding entity manager closes. ... package com. greensoft . objectdb . test . console ;   import java. util . ArrayList ; import ...