About connection

71-80 of 200Refresh
JDO Doc
8

setConnectionFactory2(connectionFactory)

) Set the second data store connection factory. This is needed for managed environments to get nontransactional connections for optimistic transactions. JDO implementations will support specific connection factories. The connection factory interfaces are not part of the JDO specification. Parameters
JDO Doc
8

getNativeConnection()

-specific connection that this connection wraps. In general, it is not recommended that this native connection be used directly, since the JDO implementation has no way to intercept calls to it, so it is quite possible to put the PersistenceManager's connection into an invalid state. Returns: the native connection Since: JDO 2.0
Forum
7

EntityManagerFactory Fails To Swtich Over To Slave When Master Is Unavailable

; which generates the following exception below. What am I doing wrong? It appears the connection manager fails ... Failed to connect to server 10.9.2.15:9999 (Connection refused: connect) (error 522) at com.objectdb.jpa ... .o.UserException: Failed to connect to server 10.9.2.15:9999 (Connection refused: connect) at com
JDO Doc
7

getPersistenceManager(userid, password)

connections from the connection pool. After the first use of getPersistenceManager, no "set" methods will succeed. Parameters: userid - the userid for the connection password - the password for the connection Returns: a PersistenceManager instance with default options. Since: JDO 1.0
JDO Doc
7

setConnectionFactory(connectionFactory)

) Set the data store connection factory. JDO implementations will support specific connection factories. The connection factory interfaces are not part of the JDO specification. Parameters: connectionFactory - the data store connection factory. Since: JDO 1.0
JDO Doc
7

javax.jdo.JDOEntityManager

transaction is active, this method obtains a datastore connection and verifies the consistency
JDO Doc
7

javax.jdo.PersistenceManager

, this method obtains a datastore connection and verifies the consistency of the instances in the cache ... obtains a datastore connection, synchronizes the cache with the datastore using this connection and reports any exceptions. The connection obtained by this method is held until the end of the transaction
Forum
6

Query problem after transaction commit

I have a machine running the objectdb server and the client on another machine connect to it. The client program can connect to the server and query to get all the records. However, after transaction ... below are done by through the UI buttons. line#> Screen Output [Remarks] 01> Test_Connection: connecting 02
JDO Doc
6

flush()

transaction is active, this method obtains a datastore connection, synchronizes the cache with the datastore using this connection and reports any exceptions. The connection obtained by this method
JDO Doc
6

getConnectionFactory2()

Method javax.jdo.PersistenceManagerFactory Object getConnectionFactory2() Get the second data store connection factory. This is needed for managed environments to get nontransactional connections for optimistic transactions. Returns: the data store connection factory. Since: JDO 1.0