Re: PGXADataSource does not implement DataSource

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: PGXADataSource does not implement DataSource
Дата
Msg-id 4629234B.8050507@enterprisedb.com
обсуждение исходный текст
Ответ на PGXADataSource does not implement DataSource  ("Bill Middleton" <utvikler@gmail.com>)
Ответы Re: PGXADataSource does not implement DataSource
Список pgsql-jdbc
Bill Middleton wrote:
> Hello and thanks for for the efforts.  I've noticed that your XA
> implementation does not formally implement javax.sql.DataSource.  I felt
> pretty sure that this was a simple oversight, given that BaseDataSource
> provides complete compatibility with the DataSource interface.  I patched
> thusly:

I'm not sure that's a smart a smart thing to do. I don't think there's a
requirement for XADataSource implementations to implement DataSource as
well. If that was the case, surely XADataSource interface would inherit
DataSource to enforce that. If we declare that PGXADataSource implements
DataSource, then one can erroneously configure the container to use
PGXADataSource in normal DataSource-mode. In fact I suspect that's the
case in your environment as well.

Can you provide a simple test case involving Hibernate so that I can try
this out myself? What's in your hibernate config file?

--
   Heikki Linnakangas
   EnterpriseDB   http://www.enterprisedb.com

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Kris Jurka
Дата:
Сообщение: Re: PGXADataSource does not implement DataSource
Следующее
От: "Bill Middleton"
Дата:
Сообщение: Re: PGXADataSource does not implement DataSource