7 May 00:17
Postgresql and XA Datasource
From: Sean Radford <sean.radford@...>
Subject: Postgresql and XA Datasource
Newsgroups: gmane.comp.cms.nuxeo.general
Date: 2008-05-06 22:20:29 GMT
Subject: Postgresql and XA Datasource
Newsgroups: gmane.comp.cms.nuxeo.general
Date: 2008-05-06 22:20:29 GMT
Hi, How do you define the schema to use for XA datasources in Nuxeo? For example I've tried: <xa-datasource> <jndi-name>nxworkflowjbpm</jndi-name> <xa-datasource-class>org.postgresql.xa.PGXADataSource</xa-datasource-class> <xa-datasource-property name="ServerName">localhost</xa-datasource-property> <xa-datasource-property name="PortNumber">5432</xa-datasource-property> <xa-datasource-property name="DatabaseName">MY_DB</xa-datasource-property> <xa-datasource-property name="Schema">my_schema</xa-datasource-property> <xa-datasource-property name="User">my_user</xa-datasource-property> <xa-datasource-property name="Password">password</xa-datasource-property> <track-connection-by-tx/> </xa-datasource> But this fails with: 2008-05-06 21:53:45,117 WARN [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] Throwable while attempting to get a new connection: null org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Could not find accessor on XADataSou rce: ; - nested throwable: (java.lang.NoSuchMethodException: org.postgresql.xa.PGXADataSource.setSchema(java.lang.String)))(Continue reading)
RSS Feed