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
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
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
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
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
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
: 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
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
; applicationcontext
> > > with default
> > > > > information (my test db) and specify
> my
> > BanPolicyDAO
> > > object, letting Spring
> > >
> > > inject the datasource. All works well with my
> new
> > BanPolicy configuration
> > > > (that you've all seen over and over this
> week!).
> > > >
> >
iguration
> > > > (that you've all seen over and over this
> week!).
> > > >
> > > > I searched the archives for dealing with
> multiple
> > datasources but all the
> >
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
> 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.
> > >
> > >
>
>
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
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
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.
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
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-
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
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.
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.
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.
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.
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.
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
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
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
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
29 matches
Mail list logo