RE: newbie - Java Heap

2007-06-20 Thread Daniel Kalcevich
I have also run into a problem with running out of PermGen memory because my code was creating the SqlMapClient again and again, and reloading the Sql Map files. That could be another place you might want to check. Daniel From: Tom Henricksen [mailto:[EMAIL P

RE: Database Blocking

2007-06-04 Thread Daniel Kalcevich
You could do one of two things: 1. You could get the Sql Map Factory Bean from the Spring Context 2. Go through the SqlMapClientDaoSupport class and use the getSqlMapClient() or getSqlMapClientTemplate() method Daniel From: Reese, Rich R. [mailto:[EMAIL PROTE

RE: Database Blocking

2007-06-04 Thread Daniel Kalcevich
O? Thanks, Rich ____ From: Daniel Kalcevich [mailto:[EMAIL PROTECTED] Sent: Monday, June 04, 2007 1:26 PM To: user-java@ibatis.apache.org Subject: RE: Database Blocking How are you accessing the code shown in your last post? We are also using Spring with

RE: Database Blocking

2007-06-04 Thread Daniel Kalcevich
How are you accessing the code shown in your last post? We are also using Spring with JBoss, and it works fine for us. We pretty much have the same thing you have defined in Spring context.xml file (for our SQL Map Client), but we inject the SQL Map client into our DAO's by extending the "org

RE: transactions with Spring DAOs

2007-03-14 Thread Daniel Kalcevich
You might want to look at the Spring forum's for examples on how to setup Transactions with SQL Maps. Way back when that is what I did, and was able to get it working successfully. The following forum postings may help: http://forum.springframework.org/showthread.php?t=19032 http://forum.spri

RE: transactions with Spring DAOs

2007-03-13 Thread Daniel Kalcevich
Is there a reason you were calling the start, end and commit transaction within Spring? We use DAO's with Spring as our TransactionManager. Not sure if you are using the SqlMapClientBean from Spring or not. But I noticed the transactions being declared, but also the fact we use the method ge

RE: What is RequestScope used for?

2007-03-08 Thread Daniel Kalcevich
ing that's madly instantiating or initializing DaoManagers or SqlMapClients or perhaps Spring containerssomething is messed up wherever you configure your classes. Clinton On 3/8/07, Daniel Kalcevich <[EMAIL PROTECTED]> wrote: Clinton, What do

RE: What is RequestScope used for?

2007-03-08 Thread Daniel Kalcevich
apshot I took showed 402 objects of the SqlMapClientImpl a It's now clear to me that you're building more than one SQL Map instance...possibly one per thread. It's not your transactional code, it's wherever you're building your DAOManager or your SqlMapClient

RE: What is RequestScope used for?

2007-03-08 Thread Daniel Kalcevich
ansactions, right? Daniel ____ From: Daniel Kalcevich [mailto:[EMAIL PROTECTED] Sent: Thu 3/8/2007 8:21 AM To: user-java@ibatis.apache.org Subject: RE: What is RequestScope used for? OK, I went ahead and changed the places where DaoManager is used and made the logic

RE: What is RequestScope used for?

2007-03-08 Thread Daniel Kalcevich
OK, I went ahead and changed the places where DaoManager is used and made the logic something like the following: try { DAOManager.startTransaction(); ...something... DAOManager.commitTransaction(); } finally { DAOManager.endTransaction(); } After making those changes, I a