You need to set blocking=true in the pool parameters.  That this is not the
default....never mind.  There is also a blocking timeout that I think is in
the version you are using.

david jencks

On 2001.10.30 06:31:24 -0500 Jeremy Miller wrote:
> I found a problem with the XAPoolDataSource when using MySQL. When the
> datasource pool is exhausted (due to my bug) I am not getting a
> SQLException
> that I would have expected, but a null pointer exception.
> 
> [Default] java.lang.NullPointerException
> org.jboss.pool.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSource.java:
> 178)
> [Default]       at
> net.altusi.util.RootFactory.getDataSourceConnection(Unknown Source)
> [Default]       at net.altusi.util.RootFactory.getConnection(Unknown
> Source)
> [Default]       at net.altusi.hierarchy.sql.Authority.getACL(Unknown
> Source)
> 
> So when a pool is exhausted, what exception should I expected to
> gracefully
> display some information for this business exception, verses a real
> runtime
> environment problem? Or is this a bug?
> 
> Jeremy
> 
> 
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 

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

Reply via email to