[
https://jira.nuxeo.com/browse/NXP-6985?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=104294#comment-104294
]
Florent Guillaume edited comment on NXP-6985 at 10/17/11 3:51 PM:
------------------------------------------------------------------
Note that currently there's a bug in the PostgreSQL JDBC driver that prevents
the above from working correctly.
The bug is in
{{org.postgresql.ds.jdbc23.AbstractJdbc23PooledConnection$ConnectionHandler#invoke}}
which does:
{code:java}
if (method.getName().equals("equals")) {
return new Boolean(proxy == args[0]);
}
{code}
but this code doesn't take into account the case where the argument is also a
proxied ConnectionHandler.
The bug can be worked around by patching commons-dbcp: in
{{org.apache.commons.dbcp.DelegatingConnection#equals}} the final case:
{code:java}
else {
return delegate.equals(obj);
}
{code}
can be replaced by:
{code:java}
else {
return delegate == obj || delegate.equals(obj);
}
{code}
which avoids calling the problematic PostgreSQL code and is also a speed
improvement.
was (Author: fguillaume):
Note that currently there's a bug in the PostgreSQL JDBC driver that
prevents the above from working correctly.
> XA datasources for Tomcat
> -------------------------
>
> Key: NXP-6985
> URL: https://jira.nuxeo.com/browse/NXP-6985
> Project: Nuxeo Enterprise Platform
> Issue Type: Sub-task
> Components: Packaging
> Reporter: Julien Carsique
> Assignee: Julien Carsique
> Fix For: 5.4.3
>
>
> Make it possible to declare XA datasource for Tomcat.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets