Questions tagged [persistence-manager]
26 questions
7
votes
2 answers
Persistent Sessions with JDBC and Tomcat
We have a cluster of Tomcat servers that share a common web server running mod_jk. We currently use sticky sessions to take care of session handling, but we would like to move to JDBC session sharing. Does anyone have a good resource or step-by-step…

Andy
- 8,749
- 5
- 34
- 59
5
votes
1 answer
How to use JDO persistence manager?
I have two questions regarding how to create / use the JDO persistence manager (PM, hereafter).
Say, in a Java web application, if I have 10 entities, which can be logically grouped into 2 groups (for example, 5 user related entities and 5 business…

Veera
- 32,532
- 36
- 98
- 137
4
votes
1 answer
JackRabbit persistence managers clarification
I'm trying to decide what type of persistence manager to use for my project. I read this wiki entry about persistenceManagers.
First of all, due to JCR-2802 (all non-bundle PM deprecated), there are only…

lisak
- 21,611
- 40
- 152
- 243
4
votes
2 answers
Persistence manager failing to instantiate
I have a web application project using gwt and using google app engine to store my data. When I run my project I get the following error:
WARNING: Error for /proj/saat
java.lang.NoSuchFieldError: NUCLEUS_CONTEXT_LOADER
at…

BBB
- 305
- 1
- 6
- 19
3
votes
0 answers
Tomcat Persistence Manager Kills Session Logins
For my web app, I use tomcat declarative security to tie login credentials to the company Active Directory. On two of our servers, logins were timing out after one minute of inactivity. On the other two servers, there is a thirty minute timeout…

Jeremy Goodell
- 18,225
- 5
- 35
- 52
3
votes
1 answer
flash builder mobile, using PersistenceManager properly?
I'm new to mobile app dev, but I'm trying to build a mobile RPG game character sheet app. Instead of using SQLite, Im trying to use PersistenceManager to persist the character data when the app is interrupted or shutdown, but Im not sure if Im using…

blkhwks19
- 503
- 5
- 13
2
votes
1 answer
How to Persist and Refresh in the same Transaction
i have multiple users. To prevent concurrency, i write something like that:
@EJB
PersistenceManagerRemote persistenceManager;
persistenceManager.lock(decidableEntity, LockModeType.READ);
persistenceManager.refresh(decidableEntity);
this worked for…

Iguramu
- 2,080
- 5
- 26
- 30
1
vote
1 answer
AppEngine: weird WriteOperation count when deleting
I'm trying to delete 300 000 entities in GAE (java), using this:
PersistenceManager pm = PMF.get().getPersistenceManager();
Date date70DaysAgo = Calendar.getInstance().getTime();
date70DaysAgo.setDate(date70DaysAgo.getDate()-70);
Query query =…

Francois
- 10,730
- 7
- 47
- 80
1
vote
2 answers
JBoss JDBC MBean Prevent Startup If Server Not Found
During JBoss startup I have a Persistence Manager that depends on a JDBC connection (DefaultDS). The JDBC connection starts fine whether or not it can actually connect to the database so when the Persistence Manager starts it thinks it has a…

Bob Fincheimer
- 17,978
- 1
- 29
- 54
1
vote
1 answer
Cant inject EntityManager With @PersistenceContext in most basic example
To test JPA with PersistenceContext injection of entity manager I have basic example project with following structure:
Person entity:
@Entity
public class Person {
@Id
@GeneratedValue
private long id;
private String name;
…

Tomas Bisciak
- 2,801
- 5
- 33
- 57
1
vote
0 answers
Tomcat persistence manager using MongoDB as a Persistence store leads problems
I used Tomcat Persistence manager with MongoDB as a persistence store.I am getting lot of problems related to this.
Tomcat not going to shutdown properly. I need to kill it later.
It showing log like this.
Tomcat Log::: Jun 28, 2016 6:36:23…

Saipavan Mannam
- 11
- 4
1
vote
2 answers
Could not initialize class com.sample.PMF (Google app engine)
I am getting this error while trying to save something to Datastore.
I have tried to search but not getting anything.
This is the code where i am saving to datastore :
Student temp = null;
PersistenceManager pm =…

RubyDubee
- 2,426
- 2
- 23
- 34
1
vote
3 answers
Google App Engine PersistenceManager can process multiple objects?
I have some code like this :
PersistenceManager pm=PMF.get().getPersistenceManager();
String query="select from "+PayPal_Message.class.getName()+" where processed == false order by time desc";
List…

Frank
- 30,590
- 58
- 161
- 244
1
vote
0 answers
How to change the PersistenceManager of an attached object?
Assume I have 3 different classes, A, B & C. C is designed to have a list of As and Bs.
If load a list of As and Bs and keep them attached, how can I set them as lists in a transient C object and persisting the transient object ?
The problem is that…

Muhammad Gelbana
- 3,890
- 3
- 43
- 81
1
vote
0 answers
Tomcat PersistenceManager: what is the use case for setting minIdleSwap / maxIdleSwap values?
I just learned about the tomcat PersistenceManager today. I was researching why my declarative security model was timing out logins after 1 minute on our dev and prod servers which have a PersistenceManager configured, but NOT on two other servers…

Jeremy Goodell
- 18,225
- 5
- 35
- 52