Re: Upgrading from 2.3.0 to 2.3.4

2010-03-23 Thread Michael Schall
Watch the first change in the release.txt from version 2.3.1 o Removed maxTransactions, maxRequests, maxSessions from configuration, all are now controlled by the resource providers We were (unknowingly) relying on these throttles and had a couple of tense days figuring out how to have the conta

Re: Should IntegerTypeHandler use Integer.valueOf instead of new Integer()

2010-03-05 Thread Michael Schall
nt(columnName); >   } > So the actual Integer creation is done by the driver. > On Thu, Mar 4, 2010 at 11:53 AM, Michael Schall > wrote: >> >> I have been doing some performance tuning and looking a heap dumps. >> The number of Integer objects in memory is staggering. Loo

Should IntegerTypeHandler use Integer.valueOf instead of new Integer()

2010-03-04 Thread Michael Schall
I have been doing some performance tuning and looking a heap dumps. The number of Integer objects in memory is staggering. Looking at the 1.5 java docs, using Integer.valueOf should help. http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Integer.html#valueOf(int) This could be extended to most of

Re: Prepared Statement cache

2009-07-21 Thread Michael Schall
Anyway to just tell the webservers (I assume JNDI) to drop all prepared statements? On Tue, Jul 21, 2009 at 4:09 PM, Glenn Barnard wrote: > restart your webservers! > > > On Tue, Jul 21, 2009 at 5:00 PM, Michael Schall wrote: > >> We run are running iBATIS within WebSphere

Prepared Statement cache

2009-07-21 Thread Michael Schall
We run are running iBATIS within WebSphere 6.1 on Windows using JNDI against a DB2 database. During a performance tuning session we found a query using an index that did not have a vital column. We added the missing column to the end of the index on a test database and using a db2 query analyzer

Multiple Queries in a single prepared statement in DB2

2009-01-06 Thread Michael Schall
I would like to run multiple queries within a single select statement using IBATIS connecting to DB2 UDB. Following the suggestion from http://www.mail-archive.com/d...@ibatis.apache.org/msg02858.html. I tried to add the allowMultiQueries setting on the connection URL but I still get an error

Re: Avoid java heap space while using iBatis

2008-10-21 Thread Michael Schall
Are you really using all 200,000 data points in your graphs or are you summarizing? Can you use SQL to generate summery information and graph that? On Tue, Oct 21, 2008 at 9:45 AM, Larry Meadors <[EMAIL PROTECTED]>wrote: > Why do you think queryForList in a loop will work better? > > Larry > > >

Re: Default transactionManager for WebSphere application not using EJBs

2008-08-27 Thread Michael Schall
> something not working with what's in the WIKI? > > Jeff Butler > > > > On Wed, Aug 27, 2008 at 2:07 PM, Michael Schall <[EMAIL PROTECTED]>wrote: > >> Is there anyone out there using iBATIS with JNDI within WebSphere without >> EJBs that is willing

Re: Default transactionManager for WebSphere application not using EJBs

2008-08-27 Thread Michael Schall
e internals and > I don't know the answer for sure. > > As to whether one is better than the other in your specific case, I can't > say. If it's not broke, don't fix it. If it is broke, give JTA a try to > see if it makes a difference. Then you'll know.

Default transactionManager for WebSphere application not using EJBs

2008-08-25 Thread Michael Schall
We are using iBATIS in a large application that does not use EJBs and it works great. We are seeing some issues where we are using more connections than we think we should be. We are wondering if we have some issues with connections/transactions not closing as fast as we would like them to. Our

Re: Connection Pool Logging

2008-08-08 Thread Michael Schall
This is our transactionManager node On Fri, Aug 8, 2008 at 11:32 AM, Michael Schall <[EMAIL PROTECTED]>wrote: > We are using jndi. > > > On Fri, Aug 8, 2008 at 11:30 AM, Clinton Begin <[EMAIL PROTECTED]>wrote: > >> If yo

Re: Connection Pool Logging

2008-08-08 Thread Michael Schall
buffer.append("\n averageOverdueCheckoutTime " + > getAverageOverdueCheckoutTime()); >buffer.append("\n hadToWait " + > getHadToWaitCount()); >buffer.append("\n averageWaitTime" + > getAverageWaitTime()); >buffer.a

Connection Pool Logging

2008-08-08 Thread Michael Schall
Is there a way to know when a connection is retrieved from the pool and returned to the pool and how long the request for a connection takes? I have looked at the ConnectionLogProxy, but I assume this is too late in the game. We already have the connection at that point? The problem I'm tring to

Re: Changing the default column --> property name mapping

2008-08-06 Thread Michael Schall
Lance - I'm pretty sure this is only a proposed feature for 3.0. Jason's example is the only way of mapping columns to properties that I'm aware of in 2.x. http://opensource.atlassian.com/confluence/oss/display/IBATIS/iBATIS+3.0+Whiteboard#iBATIS3.0Whiteboard-SomePossibleConfigurationOptions Mi

iBATIS lock timeouts

2008-07-17 Thread Michael Schall
Production Environment: We are using a JNDI datasource in WS 6.1 (fixpack 15) to connect to a DB2 9.1 (fixpack 2) database on a separate cluster. We recently upgraded our Java version of iBATIS after falling way behind from 2.0.9 to the latest release 2.3.1. The dev and test environment showed no

Re: create table in a mapping file??

2008-07-07 Thread Michael Schall
I think you will have to escape the # in #temp So references to your temp table would be ##temp. In some databases ## means something, but if trace what is actually sent to the database and it should be a single #. If you need ## sent to the database, you will have double each so you would have

Re: select "extends" ?

2008-05-21 Thread Michael Schall
For the record, the .Net version has the same sql/include concept. It also has the extends attribute. I have not used "extend" to extend statements, but is is very nice to extend parameter and result maps. On Wed, May 21, 2008 at 2:49 PM, Josh Joy <[EMAIL PROTECTED]> wrote: > Cool...even better

Re: JNDI dataSource and SqlMap-Config.xml settings

2008-03-18 Thread Michael Schall
Sorry... Sent the message while formating my xml... We have recently moved to using JNDI through WebSphere as our JDBC transaction manager while connecting to a DB2 9.1 database. Below is my transactionManager and settings elements from my sqlmap-config.xml file. I am wondering if the following

JNDI dataSource and SqlMap-Config.xml settings

2008-03-18 Thread Michael Schall
We have recently moved to using JNDI as our JDBC transaction manager.

Statement terminator

2008-03-11 Thread Michael Schall
I'm attempting to perform two statements within a single insert. We are using DB2 and I thought ; was the separator, but I get SQLSTATE: 42601. I have tried several possible solutions with no luck. Has anyone seen this or able to offer an idea? Is this even possible? Thanks Mike

Re: queryForList/Map/Object... rollbacks

2008-03-07 Thread Michael Schall
I am happy to report that switching over to JDNI has removed the excessive rollbacks. Thanks for all you help. Mike On Wed, Mar 5, 2008 at 1:50 PM, Michael Schall <[EMAIL PROTECTED]> wrote: > We have the commitRequired="false" so the code does not explicitly call > roll

Re: queryForList/Map/Object... rollbacks

2008-03-05 Thread Michael Schall
> > For example (pseudocode): > > > > int n = select count(*) from categories; > > List list = select * from categories; > > > > n == list.size() is only guaranteed if both statements were run in an > isolated transaction scope. > > > > Clinto

Re: queryForList/Map/Object... rollbacks

2008-03-05 Thread Michael Schall
I saw the commitRequired, but why are we creating the transaction in the first place? Or is this a Sybase requirement that the rest of us have had to live with? On Wed, Mar 5, 2008 at 11:44 AM, Christopher Lamey <[EMAIL PROTECTED]> wrote: > Doh! Forgot about "commitRequired" - been using Spring

Re: queryForList/Map/Object... rollbacks

2008-03-05 Thread Michael Schall
I would like to make this configurable by adding a property and code something like the following... Thoughts? Mike public List queryForList(SessionScope sessionScope, String id, Object paramObject, int skip, int max) throws SQLException { List list = null; MappedStatement ms = get