Technically, there is no way of ensuring the db is down or when you are just
a client of it.

The only thing you can ensure is that you can not access it successfully. It
may be the network is down, request timed out, service is overloaded, or
tons of other things can happen in the universe.

You already get an exception, and that should usually be enough.

On Wed, Feb 4, 2009 at 9:36 AM, Dotan N. <[email protected]> wrote:

> cant this can be an ambiguous exception?
>
> On Wed, Feb 4, 2009 at 10:30 AM, Ayende Rahien <[email protected]> wrote:
>
>> that is what you get
>>
>>
>> On Wed, Feb 4, 2009 at 10:27 AM, Kris-I <[email protected]> wrote:
>>
>>> Sure, but I don't know NH very well than there is may be a something
>>> implemented ..
>>>
>>> That's the point, I don't want a retry, I just want to do a get and a
>>> fast "answer" (or exception)
>>>
>>>
>>> NH is not magical.  It's an abstraction on top of ADO.NET     same old
>>>> IDbConnection, IDbCommand and IDataReader.
>>>> no DB => IDbConnection.Open() will fail => exception.
>>>> you can add retry mechanism yourself, but that's your business concern,
>>>> to the framework's
>>>>
>>>
>>>
>>>
>>>
>>
>>
>>
>
> >
>


-- 
Sidar Ok
http://www.sidarok.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to