mahout-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Mühlbachler <dan...@muehlbachler.org>
Subject Re: Taste-Web MySQLDataModel recommender example needed!
Date Wed, 16 Feb 2011 16:04:09 GMT
btw... Thank you very very very much for your help! I would have never 
made it that way! ;)


Am 16.02.2011 16:39, schrieb Sean Owen:
> No. You don't make any DataSource. Your container does, once you've
> configured it. You look it up with JNDI (or just use the constructor
> that takes the JNDI name -- the Mahout implementation will look it
> up.)
>
> There is no workaround here. It all works as intended, as-is. You do
> have to understand how to configure a J2EE container to use the output
> of taste-web, which is a J2EE .war file.
>
> 2011/2/16 Daniel Mühlbachler<daniel@muehlbachler.org>:
>> OK, so I must deploy my container a ressource file where all needed data is
>> specified to connect to my MySQL server/database. Then I make a dataSource
>> with an abstract type DataSource which is fetched via JNDI from my ressource
>> file (I don't know which type it has - e.g. MySQL/PostgreSQL/... because I'm
>> using an abstract type). This dataSource is given to my constructor and it
>> should work? (so, it's something like a "workaround" :D )
>> In fact, I can use the Maven Jetty WebServer too if am able to deploy a
>> valid ressource file and can include the MySQL Connector/J or I can make mvn
>> package in the taste-web folder and copy the war file to an other container
>> (e.g. Tomcat) to work with this file.
>>

Mime
View raw message