On 06-03-2026 14:22, Fabio Luis - Vanguarda TI wrote:
> > As a workaround, consider using org.firebirdsql.ds.FBSimpleDataSource
> > (Resource Type: javax.sql.DataSource) instead in that configuration.
>
> I currently use a JDBC connection pool on the Payara application server.
>
> I'm not familiar with the difference between FBSimpleDataSource and
> FBConnectionPoolDataSource in a connection pool. Could you please point
> out what I would be gaining (or losing) with this change? And does
> FBSimpleDataSource work with JDBC connection pools?
It will work. Instead of Jaybird providing the PooledConnection
implementation, Payara itself will provide the equivalent of that to
wrap the physical connection returned by the data source. In fact,
Payara's documentation doesn't even mention
javax.sql.ConnectionPoolDataSource, so it might even be better to switch
to using FBSimpleDataSource anyway. Don't switch to FBXADataSource (a
javax.sql.XADataSource), as that has the same flaw, and if you don't use
distributed transactions, you don't need it.
It shouldn't make much difference, except that you'll rely on what
Payara considers fatal exceptions to invalidate connections, instead of
Jaybird. That could result in connections sometimes being invalidated
when they could be reused. However, given Jaybird itself will usually
close the physical connection on fatal errors anyway, that shouldn't
matter much in practice.
That said, I haven't used Payara myself, so you will want to verify that
for yourself.
> > I'll create a ticket and fix this.
>
> Could you share the link so I can follow along, please?
I posted that in a later message: