You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by meenu_24 <me...@yahoo.co.in> on 2006/11/28 17:05:28 UTC

Ibatis - datasource config

Hi all,
In SqlMapConfig.xml file can I specify my class which implements datasource
in <transactionManager> element. This is a requirement in our application 
as we have made a failover solution for datasource wich is implemented by
the class, and this class has to be reffered in SqlMapConfig.xml so that
ibatis uses a proper datasource every time. The failover solution is if one
datasource fails other takes over.
How to specify this class in transaction manager. Thanks for your time.

thanks
Meena

-- 
View this message in context: http://www.nabble.com/Ibatis---datasource-config-tf2719174.html#a7581854
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.


Re: Ibatis - datasource config

Posted by meenu_24 <me...@yahoo.co.in>.
Thanks Larry,  I am searching for the ibatis source in the internet.

Thanks
Meena



Larry Meadors-2 wrote:
> 
> It is an interface in iBATIS, used to make it possible to do what you
> are describing.
> 
> Take a look at the iBATIS source, and you'll see some examples of it.
> 
> Larry
> 
> 
> On 11/28/06, meenu_24 <me...@yahoo.co.in> wrote:
>>
>> Hi Larry,
>>
>> thanks for your suggestion, since I am new to ibatis, can you please tell
>> me
>> about the DataSourceFactory.
>>
>> Thanks
>> Meena
>>
>>
>>
>> Larry Meadors-2 wrote:
>> >
>> > Yep: you'll need to create an iBATIS DataSourceFactory implementation,
>> > but that should work just fine.
>> >
>> > Larry
>> >
>> >
>> > On 11/28/06, meenu_24 <me...@yahoo.co.in> wrote:
>> >>
>> >> Hi all,
>> >> In SqlMapConfig.xml file can I specify my class which implements
>> >> datasource
>> >> in <transactionManager> element. This is a requirement in our
>> application
>> >> as we have made a failover solution for datasource wich is implemented
>> by
>> >> the class, and this class has to be reffered in SqlMapConfig.xml so
>> that
>> >> ibatis uses a proper datasource every time. The failover solution is
>> if
>> >> one
>> >> datasource fails other takes over.
>> >> How to specify this class in transaction manager. Thanks for your
>> time.
>> >>
>> >> thanks
>> >> Meena
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/Ibatis---datasource-config-tf2719174.html#a7581854
>> >> Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Ibatis---datasource-config-tf2719174.html#a7582192
>> Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/Ibatis---datasource-config-tf2719174.html#a7583742
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.


Re: Ibatis - datasource config

Posted by Larry Meadors <lm...@apache.org>.
It is an interface in iBATIS, used to make it possible to do what you
are describing.

Take a look at the iBATIS source, and you'll see some examples of it.

Larry


On 11/28/06, meenu_24 <me...@yahoo.co.in> wrote:
>
> Hi Larry,
>
> thanks for your suggestion, since I am new to ibatis, can you please tell me
> about the DataSourceFactory.
>
> Thanks
> Meena
>
>
>
> Larry Meadors-2 wrote:
> >
> > Yep: you'll need to create an iBATIS DataSourceFactory implementation,
> > but that should work just fine.
> >
> > Larry
> >
> >
> > On 11/28/06, meenu_24 <me...@yahoo.co.in> wrote:
> >>
> >> Hi all,
> >> In SqlMapConfig.xml file can I specify my class which implements
> >> datasource
> >> in <transactionManager> element. This is a requirement in our application
> >> as we have made a failover solution for datasource wich is implemented by
> >> the class, and this class has to be reffered in SqlMapConfig.xml so that
> >> ibatis uses a proper datasource every time. The failover solution is if
> >> one
> >> datasource fails other takes over.
> >> How to specify this class in transaction manager. Thanks for your time.
> >>
> >> thanks
> >> Meena
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Ibatis---datasource-config-tf2719174.html#a7581854
> >> Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
> >>
> >>
> >
> >
>
> --
> View this message in context: http://www.nabble.com/Ibatis---datasource-config-tf2719174.html#a7582192
> Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
>
>

Re: Ibatis - datasource config

Posted by meenu_24 <me...@yahoo.co.in>.
Hi Larry,

thanks for your suggestion, since I am new to ibatis, can you please tell me
about the DataSourceFactory.

Thanks
Meena



Larry Meadors-2 wrote:
> 
> Yep: you'll need to create an iBATIS DataSourceFactory implementation,
> but that should work just fine.
> 
> Larry
> 
> 
> On 11/28/06, meenu_24 <me...@yahoo.co.in> wrote:
>>
>> Hi all,
>> In SqlMapConfig.xml file can I specify my class which implements
>> datasource
>> in <transactionManager> element. This is a requirement in our application
>> as we have made a failover solution for datasource wich is implemented by
>> the class, and this class has to be reffered in SqlMapConfig.xml so that
>> ibatis uses a proper datasource every time. The failover solution is if
>> one
>> datasource fails other takes over.
>> How to specify this class in transaction manager. Thanks for your time.
>>
>> thanks
>> Meena
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Ibatis---datasource-config-tf2719174.html#a7581854
>> Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/Ibatis---datasource-config-tf2719174.html#a7582192
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.


Re: Ibatis - datasource config

Posted by Larry Meadors <lm...@apache.org>.
Yep: you'll need to create an iBATIS DataSourceFactory implementation,
but that should work just fine.

Larry


On 11/28/06, meenu_24 <me...@yahoo.co.in> wrote:
>
> Hi all,
> In SqlMapConfig.xml file can I specify my class which implements datasource
> in <transactionManager> element. This is a requirement in our application
> as we have made a failover solution for datasource wich is implemented by
> the class, and this class has to be reffered in SqlMapConfig.xml so that
> ibatis uses a proper datasource every time. The failover solution is if one
> datasource fails other takes over.
> How to specify this class in transaction manager. Thanks for your time.
>
> thanks
> Meena
>
> --
> View this message in context: http://www.nabble.com/Ibatis---datasource-config-tf2719174.html#a7581854
> Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
>
>