Internal Website Search

51-100 of 200 results

Configure ObjectDB in spring context

is to configure entire ObjectDB (optionally objectdb.conf too) in springs context .xml file so that I'd ... creating persistance.xml file. My previous database.xml (which is included in application- context .xml

Puzzler: Not getting cascades on read from Spring context

. My best guess is that perhaps I have something misconfigured in my persistence.xml or my context . 

How to define Default Entity Listeners without persistence.xml and orm.xml

Listeners . How to do ? Here my init code: Properties config = new Properties(); config.put("javax ... Mahmoud Defining default listeners is one of the few things that currently require XML metadata. You cannot define default listeners using annotations (at least in JPA 2.0). support Support

listening on a particular IP aside localhost

to listen in server mode to other connections from another machine where client is installed. I ... 8888 in configuration file but I wasn't able to add listening ip address such as 192.168.50.56 olyjosh Joshua Aroke ObjectDB will listen automatically to all requests to the server on which it is running

Entity listener - event instead of object

Hi, Currently I'm playing with entity listener to implement auditing with difference between ... to obtain an EntityManager from a listener class? You may use the JDO getPersistenceManager method ... and I'm already subscribed. The main problem for me was to get EM inside listener class. Hibernate uses

Safe to monitor listening port by connect/disconnect?

I wish to monitor our instances of ObjectDB using an automated tool that simply connects and then disconnects from the ObjectDB listening port once per second (frequency is configurable).  Will this cause any issue with the normal operation of ObjectDB? CAPdev CAP Dev It should be fine.  support Support

Glassfish 3.1.2.1 and ObjectDB 2.4.3

[http- listener -2] on host/port [0.0.0.0:8181] INFO: REST00001: Listening to REST requests at context ... Successfully INFO: WEB0169: Created HTTP listener [http- listener -1] on host/port [0.0.0.0:8080] INFO: WEB0169: Created HTTP listener [http- listener -2] on host/port [0.0.0.0:8181] INFO: WEB0169: Created HTTP

Database Replication and Clustering

these details to connect to the master server in order to listen to updates. The updates

Database Connection using JPA

(could be a domain name or an IP address) and listening on the specified port (the default is 6136

JPA Annotations for Classes

JPA defines three types of persistable classes which are set by the following annotations: Chapter 2 of the ObjectDB manual explains these annotations in detail. Entity and mapped super classes can be further configured by annotations that specify cache preferences and lifecycle event listener

Database is erased after deploying a new web application version

That may be the problem. The servlet context is available in specific listener and servlet methods ... the web-app from Tomcat's manager? Should I set some kind of listener ? Yotam Yotam Boaz You can set a listener for creating and destroying the EntityManagerFactory: https://www.objectdb.com/tutorial

JBoss 7 startup fails

_ObjectDB_web]] (MSC service thread 1-3) Exception sending context destroyed event to listener instance ... -INF dir contains: context .xml persistence.xml com.objectdb.jpa.Provider java:/DefaultDS ... subsystem 13:49:26,858 INFO [org.jboss.as.remoting] (MSC service thread 1-2) Listening on /127.0.0.1:9999

DELETE Queries in JPA/JPQL

that a cached entity object in its persistence context has been removed from the database by

JPA Query API

ObjectDB. In the context of the queries above, if there are no Country  instances in the database

Query Parameters in JPA

appearing in the query string. The parameter type is inferred by the context . In the above example

Database Schema Evolution

type to any numeric type. In this context numeric types are: byte , short , char , int , long

UPDATE SET Queries in JPA/JPQL

that a cached entity object in its persistence context has been modified by an UPDATE query

Problem to use find method on an abstract Class: AbstractMethodError is thrown

.remoting] (MSC service thread 1-10) JBAS017100: Listening on /127.0.0.1:9999 08:17:22,672 INFO [org.jboss.as.remoting] (MSC service thread 1-11) JBAS017100: Listening on localhost/127.0.0.1:4447 08:17 ... :17:23,452 INFO [org.jboss.web] (MSC service thread 1-14) JBAS018210: Registering web context

Entity factory

entityManagerFactory = (...); entityManagerFactory.setEntityFactory(myFactory); The JPA listeners ... listener instances inside his application and add this listener via API call to ObjectDB (like ... the EntityManager in a JPA listener method by using JDO:     EntityManager em

objectdb-2.6.9_06: Extended Persistence Context fails: 'Attempt to begin a new transaction when a transaction is active'

with extended Persistence Context ? [EDIT: 2006-09-29 New improved version of test mini web app with test ... () and has an entity manager with an extended persistence context . The basic idea (which used ... .java:51) The @Stateless builder with the extended persistence context entity manager is: @Stateful

javax.persistence.EntityManager

JPA Interface EntityManager Interface used to interact with the persistence context . An EntityManager instance is associated with a persistence context . A persistence context is a set of entity ... . Within the persistence context , the entity instances and their lifecycle are managed. The EntityManager API is used

javax.persistence.PersistenceContext

Expresses a dependency on a container-managed EntityManager and its associated persistence context ... which the entity manager is to be accessed in the environment referencing context ; not needed when dependency ... whether the persistence context is always automatically synchronized with the current transaction or

javax.persistence.SynchronizationType

.SynchronizationType Specifies whether the persistence context is always automatically synchronized with the current transaction or whether the persistence context must be explicitly joined to the current ... SYNCHRONIZED Persistence context is automatically synchronized with the current transaction Since: JPA

javax.persistence.Query

- if there is no transaction or the persistence context has not been joined to the transaction QueryTimeoutException ... other than NONE has been set and there is no transaction or the persistence context has not been joined ... context has not been joined to the transaction PessimisticLockException - if pessimistic locking fails

javax.persistence.PersistenceContextType

.PersistenceContextType Specifies whether a transaction-scoped or extended persistence context is to be used in PersistenceContext . If not specified, a transaction-scoped persistence context is used. Since: JPA 1.0 Enum Constants EXTENDED Extended persistence context Since: JPA 1.0 TRANSACTION

javax.persistence.TypedQuery

for a criteria query TransactionRequiredException - if there is no transaction or the persistence context has not ... and there is no transaction or the persistence context has not been joined to the transaction ... other than NONE has been set and there is no transaction or the persistence context has not been joined

javax.persistence.FlushModeType

for the persistence context is AUTO (the default) and a flush mode setting has not been specified for the Query or ... of all entities in the persistence context which could potentially affect the result of the query ... , the effect of updates made to entities in the persistence context upon queries is unspecified

javax.persistence.EntityListeners

JPA Annotation EntityListeners Target: TYPE Implemented Interfaces: Annotation Specifies the callback listener classes to be used for an entity or mapped superclass. This annotation may be applied ... how to use EntityListeners . Public Annotation Attributes Class[] value default null The callback listener classes Since: JPA 1.0

javax.persistence.PersistenceContext.type

JPA Annotation Attribute in javax.persistence.PersistenceContext PersistenceContextType type default PersistenceContextType.TRANSACTION (Optional) Specifies whether a transaction-scoped persistence context or an extended persistence context is to be used. Since: JPA 1.0

javax.persistence.PersistenceContext.synchronization

JPA Annotation Attribute in javax.persistence.PersistenceContext SynchronizationType synchronization default SynchronizationType.SYNCHRONIZED (Optional) Specifies whether the persistence context is always automatically synchronized with the current transaction or whether the persistence context

EntityManager.contains(entity) - JPA Method

JPA Method in javax.persistence.EntityManager boolean contains (   Object entity ) Check if the instance is a managed entity instance belonging to the current persistence context . Parameters: entity - entity instance Return: boolean indicating if entity is in persistence context

javax.persistence.StoredProcedureQuery

: TransactionRequiredException - if there is no transaction or the persistence context has not ... - if a lock mode other than NONE has been set and there is no transaction or the persistence context

EntityManager.find(entityClass,primaryKey,lockMode) - JPA Method

to the specified lock type. If the entity instance is contained in the persistence context ... on the entity. If the entity is found within the persistence context and the lock mode type

EntityManager.find(entityClass,primaryKey,lockMode,properties) - JPA Method

. If the entity instance is contained in the persistence context , it is returned from there. If the entity is found within the persistence context and the lock mode type is pessimistic and the entity

javax.persistence.PostLoad

JPA Annotation PostLoad Target: METHOD Implemented Interfaces: Annotation Specifies a callback method for the corresponding lifecycle event. This annotation may be applied to methods of an entity class, a mapped superclass, or a callback listener class. Since: JPA 1.0 The JPA Lifecycle Events

javax.persistence.EntityListeners.value

JPA Annotation Attribute in javax.persistence.EntityListeners Class[] value default null The callback listener classes Since: JPA 1.0

javax.persistence.ExcludeDefaultListeners

JPA Annotation ExcludeDefaultListeners Target: TYPE Implemented Interfaces: Annotation Specifies that the invocation of default listeners is to be excluded for the entity class (or mapped superclass) and its subclasses. Since: JPA 1.0 The JPA Lifecycle Events article explains how to use

PersistenceManager.makePersistent(pc) - JDO Method

persistent and applies detached instance changes to the cache. It must be called in the context ... . During makePersistent of transient instances, the create life cycle listener is called. For detached instances ... should use the jdoPostAttach callback or the postAttach lifecycle event listener . Any references

javax.jdo.JDOHelper

resource "META-INF/jdoconfig.xml", using the current thread's context class loader to locate ... , using the current thread's context class loader to locate the PersistenceManagerFactory class ... name of a class that implements javax.jdo. listener .InstanceLifecycleListener , and {pcClasses

javax.jdo.InstanceCallbacks

. listener .LoadCallback and javax.jdo. listener .ClearCallback . Note that JDO does not manage ... the enhancer. Derived fields should be initialized in this method. The context in ... to persistent fields will be reflected in the data store. The context in

javax.jdo.PersistenceManagerFactory

} ("manageMetadata") Since: JDO 2.2 void addInstanceLifecycleListener ( InstanceLifecycleListener   listener , Class[] classes) Add the parameter listener to the list of instance lifecycle event listeners set as the initial listeners for each PersistenceManager created by this PersistenceManagerFactory

StoreCallback.jdoPreStore() - JDO Method

JDO Method in javax.jdo. listener .StoreCallback void jdoPreStore () Called before the values are stored from this instance to the data store. Data store fields that might have been affected by ... so that changes to persistent fields will be reflected in the data store. The context in

LoadCallback.jdoPostLoad() - JDO Method

JDO Method in javax.jdo. listener .LoadCallback void jdoPostLoad () Called after the values are loaded from the data store into this instance. This method is not modified by the enhancer. Derived fields should be initialized in this method. The context in which this call is made does not allow

javax.jdo.spi.JDOImplHelper

to the listener list. Parameters: crl - the listener to be added Since: JDO 1.0 void addStateInterrogation ... removeRegisterClassListener ( RegisterClassListener  crl) Remove the specified RegisterClassListener from the listener list. Parameters: crl - the listener to be removed Since: JDO 1.0 void removeStateInterrogation

JDOImplHelper.removeRegisterClassListener(crl) - JDO Method

JDO Method in javax.jdo.spi.JDOImplHelper void removeRegisterClassListener (    RegisterClassListener  crl ) Remove the specified RegisterClassListener from the listener list. Parameters: crl - the listener to be removed Since: JDO 1.0

JDOImplHelper.addRegisterClassListener(crl) - JDO Method

JDO Method in javax.jdo.spi.JDOImplHelper void addRegisterClassListener (    RegisterClassListener  crl ) Add the specified RegisterClassListener to the listener list. Parameters: crl - the listener to be added Since: JDO 1.0

Query.deletePersistentAll() - JDO Method

instances. Similarly, if there are lifecycle listeners registered for delete events on affected classes, the listener is called for each appropriate deleted instance. Before returning control

javax.jdo.Query

. Similarly, if there are lifecycle listeners registered for delete events on affected classes, the listener is called for each appropriate deleted instance. Before returning control to the application

JDOHelper.getPersistenceManagerFactory(overrides,name,resourceLoader,pmfLoader) - JDO Static Method

}]] where {listenerClass} is the fully qualified name of a class that implements javax.jdo. listener ... listener class. JDO implementations are permitted to define key values of their own. Any key values not

javax.jdo.JDOUserCallbackException

This class represents exceptions caused by exceptions thrown during execution of callbacks or listeners