datasource without JNDI?

From: kaeli (tiny_one_at_NOSPAM.comcast.net)
Date: 08/25/04

  • Next message: Ryan: "SQL Server - Specifying Database Name/Owner Name when using prepareCall statement"
    Date: Wed, 25 Aug 2004 13:23:57 -0500
    
    

    Is there a way to use a datasource to connect to a DB besides using JNDI?
    Right now, my connection string is hard-coded and it's a minor pain to change
    between the production and test databases. I'd prefer to have it in a config
    file somehow, but JNDI seems like way more than I need for a small
    application.
    Any hints?

    Tips on setting up that datasource in Netscape Enterprise Server (IPlanet)
    also welcome, though a bit OT.

    Thanks!

    -- 
    --
    ~kaeli~
    When two egotists meet, it's an I for an I.
    http://www.ipwebdesign.net/wildAtHeart
    http://www.ipwebdesign.net/kaelisSpace
    

  • Next message: Ryan: "SQL Server - Specifying Database Name/Owner Name when using prepareCall statement"

    Relevant Pages

    • Re: jndi
      ... DataSource, as defined by the config file. ... The JNDI service maintains it ... instance, then when Tomcat starts, it reads the configuration file and says, ... scheme...all of that is handled by the JNDI service. ...
      (comp.lang.java)
    • Re: how could i do for use datasource without JNDI.
      ... > You can use code similar to this to use a datasource without JNDI: ... > public class datasource { ... > Please do not send email directly to this alias. ...
      (microsoft.public.sqlserver.jdbcdriver)
    • Re: how to test jndi connection pooling
      ... just stub out a DataSource class by implementing the ... MyClassToTest myClass = new MyClassToTest; ... this new class should not be doing any JNDI lookups. ... Object [but aren't all java objects POJO?]); ...
      (comp.lang.java.programmer)
    • RE: how could i do for use datasource without JNDI.
      ... You can use code similar to this to use a datasource without JNDI: ... Please do not send email directly to this alias. ...
      (microsoft.public.sqlserver.jdbcdriver)
    • Re: Binding to JNDI datasource - please help
      ... I'm relatively new to JNDI concepts and need some help. ... > connection datasource as a url variable. ... > How do I use this JNDI name to create a connection? ... > literature I have read says to bind the resource manager connection ...
      (comp.lang.java.programmer)