JNDI is the basic library for representing JDBC connection
specifications. You can use it from any program.

On Sun, Apr 22, 2012 at 7:11 AM, Sean Owen <[email protected]> wrote:
> Nope, and I answered you on SO:
>
>
> JNDI is a technology that is not specific to Tomcat, no. It is a
> directory service, part of J2EE, and supported by most J2EE containers
> -- like Tomcat, but also JBoss, etc.
>
> I don't quite understand the question, since you would only use JNDI
> in the context of an app or web server like Tomcat. But you don't want
> to use Tomcat. So why do you want to use JNDI?
>
> Certainly you don't need JNDI to use Mahout. Just pass it a DataSource
> that you configured, rather than looked up.
>
>
> On Sun, Apr 22, 2012 at 2:29 PM, Amrhal Lelasm <[email protected]> wrote:
>>
>> Hi,
>> I've been playing with Mahout for a while and I'm now trying to use a 
>> preference data from a database. So far I've been running Mahout using ant 
>> as a normal java application outside of any web container. My question is, 
>> if  I can use JNDI to connect to the database in this scenario?  From what 
>> I've read so far, it seems I should run my application inside a web 
>> container like tomcat to use JNDI. Is this right?
>> Thanks.



-- 
Lance Norskog
[email protected]

Reply via email to