I believe that in my first email I mentioned that I have db failover
coded into my bean.. That means I am not screwed if a db goes down
unless jboss screws up.. Which is what is exactly happening. Not Good.

You mentioned waiting on a long query to execute but this is irrelevant.
I am talking about the getConnection() method and the blocking attribute of
the mbean. 

The infinte wait when blocking is set to true seems obsurd.
There should be a timeout set and the timeout should be a configurable
part of the mbean..

d.

-----Original Message-----
From: David Jencks [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 28, 2001 8:04 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Strange Behavior When DataSource goes down.


Well, I kind of agree, however I don't know how to distinguish between the
db crashing and executing a query whose first results are available in 3
hours...and you're willing to wait.  I think if the driver can distinguish
and throw an exception, you get to see the exception.  Otherwise, what do
you do?  Some kind of time awareness such as jini leases would be nice,
however there certainly isn't any support for them in jdbc.  Any ideas?

david jencks

On 2001.06.28 15:32:20 -0400 Richard Kasperowski wrote:
> David Jencks wrote:
> 
> > Hi,
> > I find it hard to understand what you want.
> > 
> > jboss does try out connections from configured datasources on startup,
> and
> > hangs if they can't connect.
> > 
> > I don't see how this is a severe problem: if your datasource isn't
> working,
> > neither will your app.
> 
> 
> When a datasource becomes unavailable after startup, it might be 
> desirable for the application to tell the user, "sorry, the database is 
> unavailable."?   A user might find that more satisfactory than being 
> denied service.
> 
> -- 
> Richard Kasperowski (mailto:[EMAIL PROTECTED])
> Tel: 617-576-1552, Fax: 617-576-2441
> http://www.altisimo.com/
> 
> 
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to