what is the equivalent of this line for Postgresql?

MysqlDataSource dataSource = new MysqlDataSource ();

Im also wondering which class to import that lets me instantiate the
datasource object. I have added the drivers and mahout-integration to my
pom.xml file but I still cant instantiate that particular object for either
type of database


<build>
    <plugins>
      <plugin>
        <groupId>org.mortbay.jetty</groupId>
        <artifactId>maven-jetty-plugin</artifactId>
        <version>6.1.10</version>
      </plugin>
    </plugins>
  </build>
  <groupId>com.unresyst</groupId>
  <artifactId>mahoutrec</artifactId>
  <version>1.0-SNAPSHOT</version>
  <name>mahoutrec</name>
  <url>http://maven.apache.org</url>
  <dependencies>
    <dependency>
      <groupId>org.apache.mahout</groupId>
      <artifactId>mahout-integration</artifactId>
      <version>0.7</version>
    </dependency>
    <dependency>
      <groupId>mysql</groupId>
      <artifactId>mysql-connector-java</artifactId>
      <version>5.1.20</version>
    </dependency>
    <dependency>
      <groupId>postgresql</groupId>
      <artifactId>postgresql</artifactId>
      <version>9.1-901.jdbc4</version>
    </dependency>

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Mahout-and-a-Postgresql-datasource-tp3992426.html
Sent from the Mahout User List mailing list archive at Nabble.com.

Reply via email to