title: Unable to connect to "Compose for PostgreSQL" DB created in bluemix through eclipse
body: <p>I am not able to establish connection to Compose for PostgreSQL DB service using eclipse. Getting below error while Testing the connection. </p>
  
  <pre class="lang-none prettyprint-override"><code>org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections. 
      at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:122) 
      at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:65) 
      at org.postgresql.jdbc2.AbstractJdbc2Connection.(AbstractJdbc2Connection.java:116) 
      at org.postgresql.jdbc3.AbstractJdbc3Connection.(AbstractJdbc3Connection.java:30) 
      at org.postgresql.jdbc3.Jdbc3Connection.(Jdbc3Connection.java:24) 
      at org.postgresql.Driver.makeConnection(Driver.java:369) 
      at org.postgresql.Driver.connect(Driver.java:245) 
      at org.eclipse.datatools.enablement.internal.postgresql.PostgreSQLJDBCConnection.createConnection(PostgreSQLJDBCConnection.java:87) 
      at org.eclipse.datatools.connectivity.DriverConnectionBase.internalCreateConnection(DriverConnectionBase.java:105) 
      at org.eclipse.datatools.connectivity.DriverConnectionBase.open(DriverConnectionBase.java:54) 
      at org.eclipse.datatools.enablement.internal.postgresql.PostgreSQLJDBCConnection.(PostgreSQLJDBCConnection.java:47) 
      at org.eclipse.datatools.enablement.internal.postgresql.PostgreSQLConnectionFactory.createConnection(PostgreSQLConnectionFactory.java:51) 
      at org.eclipse.datatools.connectivity.internal.ConnectionFactoryProvider.createConnection(ConnectionFactoryProvider.java:83) 
      at org.eclipse.datatools.connectivity.internal.ConnectionProfile.createConnection(ConnectionProfile.java:359) 
      at org.eclipse.datatools.connectivity.ui.PingJob.createTestConnection(PingJob.java:76) 
      at org.eclipse.datatools.connectivity.ui.PingJob.run(PingJob.java:59) 
      at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) 
  Caused by: java.net.ConnectException: Connection refused: connect at java.net.DualStackPlainSocketImpl.connect0(Native Method) 
      at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
  </code></pre>
  
  <p>I am able to connect to the DB through the application deployed in BlueMix.</p>