[ 
https://jira.nuxeo.com/browse/NXP-6440?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=89873#action_89873
 ] 

Arnaud Kervern commented on NXP-6440:
-------------------------------------

Datasource should be like : 
  <Resource auth="Container" name="jdbc/nxaudit-logs"
    factory="org.nuxeo.runtime.datasource.DataSourceFactory"
    type="org.postgresql.xa.PGXADataSource" 
    xaDataSource="org.postgresql.xa.PGXADataSource" 
    user="nuxeo" password="nuxeo" 
    URL="jdbc:postgresql://localhost:5432/nuxeo" />

That's add some dependencies :
 - nuxeo-runtime-datasource
 - commons-pool:commons-pool:1.5.4
 - commons-dbcp:commons-dbcp:1.3-RC1

> Cannot insert a blob in Audit using Tomcat / Postgresql
> -------------------------------------------------------
>
>                 Key: NXP-6440
>                 URL: https://jira.nuxeo.com/browse/NXP-6440
>             Project: Nuxeo Enterprise Platform
>          Issue Type: Bug
>            Reporter: Arnaud Kervern
>
> An exception is throwing due to the autocommit is true.
> The reason is a strange tomcat's behavior that set it to true sometimes 
> althought if it is inside a transaction.
> It must be fixed if tomcat datasources are defined as XA, because it 
> explicitly set autocommit to false.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://jira.nuxeo.com/secure/Administrators.jspa
-
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

Reply via email to