[odmg] memory leak on write

2003-11-22 Thread Phil Warrick
Hi all, I'm in the midst of tracking down a leak that occurs when I do a write operation on an object graph. Garbage collection isn't removing these objects because they are referred to by internal ojb classes. Presumably some internal cleanup isn't occurring properly after each begin tx ... c

Re: confused about how to port some sql queries...

2003-11-22 Thread Jason Pyeron
btw, this is what I am doing for now: PersistenceBroker broker=PersistenceBrokerFactory.defaultPersistenceBroker(); Connection C=broker.serviceConnectionManager().getConnection(); PreparedStatement stmt=C.prepareStatement("SELECT min(tsin) FROM timeclock WHERE ref_employee= ? AND tsout=0;

confused about how to port some sql queries...

2003-11-22 Thread Jason Pyeron
I have a prepared statement like so: "SELECT min(tsin) FROM timeclock WHERE ref_employee= ? AND tsout=0;" I use this to decide what to query next, it sounds like I should use the "report" feature in OJB but I have no idea how. I looked at ReportQueryByCriteria(java.lang.Class targetClass, j

Second DB-Connection with JDO

2003-11-22 Thread Franz-Josef Herpers
Hi, I need to switch between at least two database sources in my application. As far as I can see, there is no way to switch between database connection with the JDO-API and the methods setConnectionURL() etc. of the PersistenceManagerFactory. So I configured a second database-connection in my