creating database in postgresql via cdo-server.xml [message #1065912] |
Fri, 28 June 2013 05:37 |
Eclipse User |
|
|
|
hello guys,
i m working on cdo and emf based application, and using PostgreSQL as my database and running the server from cdo-server.xml
i want to allow the cdo-server.xml to create database if doesn't exists, as in mysql happens,
but its not working.
here is my cdo-server.xml for postgresql
<?xml version="1.0" encoding="UTF-8"?>
<cdoServer>
<acceptor type="tcp" listenAddr="0.0.0.0" port="2036">
</acceptor>
<repository name="demo">
<store type="db">
<mappingStrategy type="horizontal" />
<dbAdapter name="postgresql" />
<dataSource class="org.postgresql.ds.PGSimpleDataSource"
serverName="localhost" portNumber="5433"
databaseName="cdotests" createDatabaseIfNotExist="true"
user="postgres" password="admin" />
</store>
</repository>
</cdoServer>
|
|
|
Powered by
FUDForum. Page generated in 0.04114 seconds