Re: How can I change datasource connect info on the fly w/iBATIS and Spring?

2007-05-22 Thread Chris Lamey
Hello, I switched to the Spring 2.0 AOP stuff a while back, so I have something like this for each DataSource (mine are on a per-vendor basis):

Re: How can I change datasource connect info on the fly w/iBATIS and Spring?

2007-05-22 Thread tran duc trung
Hi, So how do you set a tx mrg for a service. Normally, i have a service configured like this : ... should i have a service for each tx mrg ? Thanks in advance! Trung 2007/5/22, Chris Lamey <[EMAIL PROTECTED]>: Hello, I have a DataSource txn mgr for each DataSource. Cheers, C

Re: How can I change datasource connect info on the fly w/iBATIS and Spring?

2007-05-22 Thread Chris Lamey
Hello, I have a DataSource txn mgr for each DataSource. Cheers, Chris On Tue, 2007-05-22 at 17:31 +0200, tran duc trung wrote: > Thanks for the rapid response. > > How do you specify a DataSource for DataSourceTransactionManager while > you have several datasources (one for each SqlMapClient) ?

Re: How can I change datasource connect info on the fly w/iBATIS and Spring?

2007-05-22 Thread tran duc trung
Thanks for the rapid response. How do you specify a DataSource for DataSourceTransactionManager while you have several datasources (one for each SqlMapClient) ? Trung 2007/5/22, Chris Lamey <[EMAIL PROTECTED]>: Hello, I also use Spring's DataSource txn mgr with this setup (in fact, I think t

Re: How can I change datasource connect info on the fly w/iBATIS and Spring?

2007-05-22 Thread Chris Lamey
Hello, I also use Spring's DataSource txn mgr with this setup (in fact, I think the Spring SqlMapClient can't use the iBATIS txn mgr). My transactions are contained in a single Thread hitting a single DataSource within an invocation of a method of my API. A Thread will likely end up hitting mult

Re: cache-size management details

2007-05-22 Thread Lukas O.
Lukas O. wrote: > > Hello. > > There are two places where you can specify cache sizes in ibatis: > on a global level (in our case oscache) and a cache model level. > > Can anybody tell me how the two work together? > For instance what if the sum of the cache model sizes are larger > then the g

Re: Desktop apps with iBatis

2007-05-22 Thread Chris Lamey
Hello, We have an API in front of a database schema that uses iBATIS as the DB interface. This API is used by swing, command line, and web applications. It is packaged in a jar file with an external configuration file. The jar file has all the iBATIS sqlmap xml files and all of the Spring conte

Re: Is this possible in Dynamic SQL

2007-05-22 Thread filepillow
Hi, There's one more thing I would like to ask. Is there an intention for iBatis (version 3, maybe?) to include a second pass to resolve new parameters introduced? Having a optional 2nd pass seems like quite a useful use case. Especially if the where clause can be quite different. If 2nd pass

Re: How can I change datasource connect info on the fly w/iBATIS and Spring?

2007-05-22 Thread tran duc trung
I have not yet tested your solution, but how about the integration with Spring Transaction Manager? We do not have IbatisTransactionManager in Spring but have to use DataSourceTransactionManager which is not notified when datasource change. 2007/4/13, Chris Lamey <[EMAIL PROTECTED]>: Yea, Sprin

Re: Desktop apps with iBatis

2007-05-22 Thread Zoran Avtarovski
We've actually done this where we developed the business logic as a web app and due to customer needs another team implemented the same code for a desktop app (I think they used SWT??) They didn't modify any of the iBatis stuff and very little of the other code. Z. > Hello, > > I'm developing a

cache-size management details

2007-05-22 Thread Lukas O.
Hello. There are two places where you can specify cache sizes in ibatis: on a global level (in our case oscache) and a cache model level. Can anybody tell me how the two work together? For instance what if the sum of the cache model sizes are larger then the global cache size - is the global siz