Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] [Config] DataSource not properly initialized(url field of dataSource ignored?)
icon4.gif  [CDO] [Config] DataSource not properly initialized [message #648512] Thu, 13 January 2011 10:35 Go to next message
Erdal Karaca is currently offline Erdal KaracaFriend
Messages: 854
Registered: July 2009
Senior Member
I am trying to use the postgres db as backend.
The DB and the CDO server are on different servers (physically). When telling cdo to use a remote backend, i.e. not localhost, the connection will not be created.
While debugging, I noticed the DataSource object's server field contains 'localhost' instaead of my remote server's ip that I configured in cdo-server.xml...
I modified the data source object (server and port fields) in the debugger and was able to get the connection.
Re: [CDO] [Config] DataSource not properly initialized [message #648515 is a reply to message #648512] Thu, 13 January 2011 10:56 Go to previous messageGo to next message
Erdal Karaca is currently offline Erdal KaracaFriend
Messages: 854
Registered: July 2009
Senior Member
It seems that I have to use "serverName" field to set the server ip:

<dbAdapter name="postgresql" />
<dataSource class="org.postgresql.ds.PGSimpleDataSource"
databaseName="cdo" user="postgres" password="postgres" serverName="my.remote.server" />

Though, the field portNumber is still not settable.
Re: [CDO] [Config] DataSource not properly initialized [message #648910 is a reply to message #648512] Sat, 15 January 2011 11:15 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Hi Erdal,

I was not able to find a question in your post.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper



Am 13.01.2011 11:35, schrieb Erdal Karaca:
> I am trying to use the postgres db as backend.
> The DB and the CDO server are on different servers (physically). When telling cdo to use a remote backend, i.e. not localhost, the connection will not be created.
> While debugging, I noticed the DataSource object's server field contains 'localhost' instaead of my remote server's ip that I configured in cdo-server.xml...
> I modified the data source object (server and port fields) in the debugger and was able to get the connection.


Re: [CDO] [Config] DataSource not properly initialized [message #648911 is a reply to message #648515] Sat, 15 January 2011 11:21 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 13.01.2011 11:56, schrieb Erdal Karaca:
> It seems that I have to use "serverName" field to set the server ip:
>
> <dbAdapter name="postgresql" />
> <dataSource class="org.postgresql.ds.PGSimpleDataSource"
> databaseName="cdo" user="postgres" password="postgres" serverName="my.remote.server" />
Have you tried |portNumber="nnnn"?

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


|
>
> Though, the field portNumber is still not settable.
>


Previous Topic:[EMF/Genmodel] Filtering right instances in generated editor
Next Topic:[CDO] CDO Source Installation - A selected specification is unresolved
Goto Forum:
  


Current Time: Fri Apr 26 04:29:48 GMT 2024

Powered by FUDForum. Page generated in 0.02819 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top