Fast Object Database for Java - with JPA/JDO support

Internal Website Search

1-10 of 200 resultsRefresh
184

JPA / JDO Class Enhancer

and enhance classes on the fly during load, even if a Java Agent is not specified explicitly. This enhancement ... ObjectDB Enhancer is a post compilation tool that improves performance by modifying the byte code of compiled classes after compilation. Enhancement is mainly for user-defined persistable classes
68

[ODB1] Chapter 3 - Persistent Classes

which the enhancer is running): > java com.objectdb.Enhancer -cp src test.X test.pc.* On the Fly JDO ... the command line) is to add a new simple main class to a project that applies on the fly enhancement: package test; /** Additional main - On the Fly JDO Enhancer */ public class eMain { public
54

Entity Management Settings

") specifies whether the Enhancer Agent should be loaded to enhance persistable types on the fly ... : <enhancement agent="true" reflection="warning" /> The <enhancement> element
54

Step 3: Add a Context Listener Class

GuestListener implements ServletContextListener { // Prepare the EntityManagerFactory & Enhance: public void contextInitialized(ServletContextEvent e) { com.objectdb.Enhancer.enhance ... ().getAttribute("emf"); emf.close(); } } The code above: Invokes the Enhancer to enhance
54

Step 3: Add a Context Listener Class

{ // Prepare the EntityManagerFactory & Enhance: public void contextInitialized(ServletContextEvent e) { com.objectdb.Enhancer.enhance("guest.*"); EntityManagerFactory emf ... (); } } The code above: Invokes the Enhancer to enhance the entity class, creates an EntityManagerFactory
49

[ODB1] Chapter 2 - A Quick Tour

enhancement. 2.4 On The Fly JDO Enhancement On the fly JDO enhancement is the easiest way to use the JDO ... , and a special tool, the JDO enhancer, adds the implementation automatically. The Person Persistent Class ... , it can easily become persistent using the JDO enhancer. JDO Metadata Every persistent class must be declared
30

Step 7: Run the Spring Web App

. Right click the server node and select Restart. When using GlassFish - on the fly enhancement (weaving ... . You can stop the Tomcat server and open the database file in ObjectDB Explorer: To enable on the fly enhancement (weaving) in Tomcat: Find the Tomcat server in the [Services window] under Servers. Right
30

Step 7: Run the Spring Web App

the persistence.xml file - instead of RESOURCE_LOCAL you will have to specify JTA. To enable on the fly automatic enhancement (weaving) in Tomcat it has to be run with ObjectDB as a Java agent (javaagent:objectdb.jar). When using GlassFish - on the fly enhancement (weaving) is automatically enabled
27

ObjectDB Object Database Features

). On the fly enhancement by using a Java agent. Replication (Cluster) Master-Slave replication (clustering ... update - changes are detected automatically. Code enhancement is optional (recommended before ... , restarted, stopped) from the command line. Class Enhancer Boosts performance by avoiding reflection
18

Post-compilation enhancement vs Automatic Run-time enhancement

on the fly runtime enhancement is applied only to entity classes, where post compilation enhancement ... enhancement and automatic run-time enhancement. Testing exactly where and when the results are different ... depending on the enhancement stragegy). Can you please explain how this could possibly

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support