I forgot to say I am trying to investigate how to make it work as we need specific stuff from the DataSource object. It might work if you use setServerName rather than setUrl. setServerName will append itself the jdbc:postgresql:// so you only give it the server name (i.e "url1:port1,url2:port2") and then setPortNumber to 0. By reading the code, this might work. -- Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html