Re: implementing asynchronous notifications
От
Oliver Jowett
Тема
Re: implementing asynchronous notifications
Дата
Msg-id
4266E296.6050105@opencloud.com
Ответ на
Re: implementing asynchronous notifications (David Gagnon)
Список
Дерево обсуждения
implementing asynchronous notifications Andras Kadinger <bandit@surfnonstop.com>
Re: implementing asynchronous notifications Oliver Jowett <oliver@opencloud.com>
Re: implementing asynchronous notifications Andras Kadinger <bandit@surfnonstop.com>
Re: implementing asynchronous notifications Oliver Jowett <oliver@opencloud.com>
Re: implementing asynchronous notifications David Gagnon <dgagnon@siunik.com>
Is closing a ResulSet, Statement or connection act as a rollback when
a transaction is not commited? Not clear in JavaDoc. David Gagnon <dgagnon@siunik.com>
Re: Is closing a ResulSet, Statement or connection act as Oliver Jowett <oliver@opencloud.com>
Re: implementing asynchronous notifications Oliver Jowett <oliver@opencloud.com>
Re: implementing asynchronous notifications PLEASE CONFIRM MY David Gagnon <dgagnon@siunik.com>
Re: implementing asynchronous notifications Andras Kadinger <bandit@surfnonstop.com>
Re: implementing asynchronous notifications Oliver Jowett <oliver@opencloud.com>
Re: implementing asynchronous notifications Andras Kadinger <bandit@surfnonstop.com>
Re: implementing asynchronous notifications Oliver Jowett <oliver@opencloud.com>
David Gagnon wrote: > I just read this thread. Wich seems really interesting. Is there an > example on how to use Async Notifies? I look at it a couple of months > ago and found it not sufficient for my needs. I need to implement a > notification mechanism to clear data from caches in my application on > data update. > > Is this change allow me to do that .. ? That will be so nice :-) > > If yes it's that possible to get a small example on how to use it. Basically, you can now call PGConnection.getNotifications() and get results without having to submit a dummy query first. You will still need an application-level loop that periodically calls it, though. Also, it's not guaranteed to give you notifications: you must be not in a transaction (this is server-side behaviour), and you must be using a Socket implementation that implements available() (SSL connections may not do this). -O
В списке pgsql-jdbc по дате отправления
От: Oliver Jowett
Дата: