Dyanamic Datasource to transacationManager with Ibatis and Spring.

2008-10-09 Thread bala r
Greetings, I need to pass dyanamic datasource to TransactionManager,, The following article explain how to get Dyanamic Datasource using ibatis and spring.Similar way i need to pass the dyanamic datasource to TransactionManager, http://opensource.atlassian.com/confluence/oss/pages/viewpage.action

ibatis and spring

2008-04-17 Thread Henry Lu
in bean configuration file: class="org.springframework.orm.ibatis.SqlMapClientFactoryBean"> sql-map-config.xml Is there a way not use sql-map-config.xml file but sql-map.xml file like the following directly? PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN" "h

Re: Question on using Transactions with iBatis and Spring

2007-06-25 Thread Chris Lamey
heers, Chris On Mon, 2007-06-25 at 08:08 -0700, Robert Glover wrote: > I am confused over how to use transactions with iBatis and Spring. (I'm > actually using iBatis and Abator and Spring). > >The Spring 2.0.6 manual (section 12.5) says, > > "...Transaction man

Re: Question on using Transactions with iBatis and Spring

2007-06-25 Thread Brandon Goodin
public void insertMethodOnServiceClass(MyObject myObject) { myDao.insert(myObject); myOtherDao.update(myObject); } Hope that helps, Brandon Goodin On 6/25/07, Robert Glover <[EMAIL PROTECTED]> wrote: I am confused over how to use transactions with iBatis and Spring. (I'm actually u

Question on using Transactions with iBatis and Spring

2007-06-25 Thread Robert Glover
I am confused over how to use transactions with iBatis and Spring. (I'm actually using iBatis and Abator and Spring). The Spring 2.0.6 manual (section 12.5) says, "...Transaction management can be handled through Spring's standard facilities. There are no special transac

Re: Transactions with iBatis and Spring

2007-06-11 Thread Collin Peters
http://opensource.atlassian.com/confluence/oss/display/IBATIS/Converting+iBA TIS+DAO+to+Spring+DAO Kind Regards Meindert -Original Message- From: Collin Peters [mailto:[EMAIL PROTECTED] Sent: 09 June 2007 02:15 AM To: user-java@ibatis.apache.org Subject: Transactions with iBatis and Spring

RE: Transactions with iBatis and Spring

2007-06-11 Thread Meindert
: Collin Peters [mailto:[EMAIL PROTECTED] Sent: 09 June 2007 02:15 AM To: user-java@ibatis.apache.org Subject: Transactions with iBatis and Spring I am trying to figure out how transactions work when using Spring and iBatis. I am ultimately trying to use transactions at the Spring level using

Transactions with iBatis and Spring

2007-06-08 Thread Collin Peters
I am trying to figure out how transactions work when using Spring and iBatis. I am ultimately trying to use transactions at the Spring level using annotations. I am very confused about all the different places for config info. This is my config BEFORE I tried to implement transactions applicati

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

2007-05-22 Thread Chris Lamey
; applicationcontext > > > with default > > > > > information (my test db) and specify > my > > BanPolicyDAO > > > object, letting Spring > > >

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

2007-05-22 Thread tran duc trung
> > > inject the datasource. All works well with my > new > > BanPolicy configuration > > > > (that you've all seen over and over this > week!). > > > > > >

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

2007-05-22 Thread Chris Lamey
iguration > > > > (that you've all seen over and over this > week!). > > > > > > > > I searched the archives for dealing with > multiple > > datasources but all the > >

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

2007-05-22 Thread tran duc trung
t; > > > I searched the archives for dealing with multiple > datasources but all the > > > responses seemed to be in the case when you knew the > connection info in > > > advance. In my case I need to create a new datasour

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

2007-05-22 Thread Chris Lamey
> responses seemed to be in the case when you knew the > connection info in > > > advance. In my case I need to create a new datasource on > the fly, or be able > > > to change the settings of the existing one. So far my > efforts haven't worked > > > - the DAO only ever uses the original connection info. > > > > > > Anyone tried this, or have have any thoughts on the best > way to do it? > > > > > > Cheers > > > > > > Paul > > > -- > > > View this message in context: > > http://www.nabble.com/How-can-I-change-datasource-connect-info-on-the-fly-w-iBATIS-and-Spring--tf3573169.html#a9983995 > > > Sent from the iBATIS - User - Java mailing list archive at > Nabble.com. > > > > > > > >

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

2007-05-22 Thread tran duc trung
ase I need to create a new datasource on the fly, or be able > > to change the settings of the existing one. So far my efforts haven't worked > > - the DAO only ever uses the original connection info. > > > > Anyone tried this, or have have any thoughts on the best way to

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

2007-04-19 Thread Paul Sanders
ption { DataSource ds = MediusContextDataSourceHolder.getDataSource(); return ds.getConnection(username, password); } } -- View this message in context: http://www.nabble.com/How-can-I-change-datasource-connect-info-on-the-fly-w-iBATIS-and-Spring--tf3573169.html#a100

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

2007-04-17 Thread Paul Sanders
7; datasource // exception raised java.lang.IllegalStateException: Cannot determine target DataSource for lookup key [xxxMedius] } -- View this message in context: http://www.nabble.com/How-can-I-change-datasource-connect-info-on-the-fly-w-iBATIS-and-Spring--tf3573169.html#a10047766 Sent from the iBATIS - User - Java mailing list archive at Nabble.com.

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

2007-04-17 Thread Chris Lamey
That should work ok, that Map could get modified at servlet init time. On Tue, 2007-04-17 at 11:27 -0700, Paul Sanders wrote: > Hmm... I wonder if it would be possible to update the datasource mapping > later? Its true that I don't know the datasources at init time but I do know > them as soon as

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

2007-04-17 Thread Paul Sanders
gets horked. > > I don't know if it'll work for you because your datasources have to be > known in advance and it sounds like yours may not be. > > Cheers, > Chris > -- View this message in context: http://www.nabble.com/How-can-I-change-datasource-connect-info-

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

2007-04-16 Thread Kyohyoh Choh
Hello Thank you for point out the cachemodel. To switch different datasources for diffrent users and retrieve the data correctly, we don't want to iBATIS to cache the data, though it maybe have some performance impart. In the sqlmapconfig.xml, we do not turn the cacheModelsEnabled="false", so

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

2007-04-16 Thread Chris Lamey
unds like yours may not be. > > Cheers, > Chris > > -- View this message in context: http://www.nabble.com/How-can-I-change-datasource-connect-info-on-the-fly-w-iBATIS-and-Spring--tf3573169.html#a9986772 Sent from the iBATIS - User - Java mailing list archive at Nabble.com.

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

2007-04-16 Thread Kyohyoh Choh
be. > > Cheers, > Chris > > -- View this message in context: http://www.nabble.com/How-can-I-change-datasource-connect-info-on-the-fly-w-iBATIS-and-Spring--tf3573169.html#a9986772 Sent from the iBATIS - User - Java mailing list archive at Nabble.com.

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

2007-04-13 Thread Paul Sanders
like yours may not be. > > Cheers, > Chris > > -- View this message in context: http://www.nabble.com/How-can-I-change-datasource-connect-info-on-the-fly-w-iBATIS-and-Spring--tf3573169.html#a9986772 Sent from the iBATIS - User - Java mailing list archive at Nabble.com.

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

2007-04-13 Thread Chris Lamey
In my case I need to create a new datasource on the fly, or be able > > to change the settings of the existing one. So far my efforts haven't worked > > - the DAO only ever uses the original connection info. > > > > Anyone tried this, or have have any thoughts on

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

2007-04-13 Thread Larry Meadors
the best way to do it? Cheers Paul -- View this message in context: http://www.nabble.com/How-can-I-change-datasource-connect-info-on-the-fly-w-iBATIS-and-Spring--tf3573169.html#a9983995 Sent from the iBATIS - User - Java mailing list archive at Nabble.com.

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

2007-04-13 Thread Paul Sanders
eers Paul -- View this message in context: http://www.nabble.com/How-can-I-change-datasource-connect-info-on-the-fly-w-iBATIS-and-Spring--tf3573169.html#a9983995 Sent from the iBATIS - User - Java mailing list archive at Nabble.com.

RE: Ibatis and Spring Framework

2005-08-05 Thread James, Steven
To: user-java@ibatis.apache.org Subject: RE: Ibatis and Spring Framework Hi, I use iBATIS with Spring. In fact I learned about iBATIS via Spring; I think the two together work very well. In addition to Richard's comments, I would add: - Common configuration mechanism across your whole pr

RE: Ibatis and Spring Framework

2005-08-04 Thread John Hurst
t > -Original Message- > From: rich oates [mailto:[EMAIL PROTECTED] > Sent: Friday, 5 August 2005 07:18 > To: user-java@ibatis.apache.org > Subject: Re: Ibatis and Spring Framework > > The Spring JDBC wrapper offers at least the following: > > - a further a

Re: Ibatis and Spring Framework

2005-08-04 Thread rich oates
The Spring JDBC wrapper offers at least the following: - a further abstraction away from iBatis (which is useful if you wish to change the underlying persistence framework in the future) - common data access exceptions (i.e. the iBatis exceptions are mapped to spring exceptions. Again, useful if

Ibatis and Spring Framework

2005-08-04 Thread Abdullah Kauchali
Can someone who has experience with the Spring Framework please help me explain briefly what advantages it could afford /along with/ the use of Ibatis. What is it that the Spring offers that IBatis does not? (I know that Spring is multi-facetted, it does AOP stuff etc - but I am asking specifi