You are right ! It should be :
databaseUrl = jdbc:inetdae7:localhost:1433?database=TORQUE
databaseDriver = com.inet.tds.TdsDriver
I forgot to mention catalog name. But it was not enough to solve the
problem. Pool Service in Turbine seems having problem getting
connection. After I manually create Pool then it works. Here is my
java code:
...
TurbineDB.registerPool("MyPool", "com.inet.tds.TdsDriver", url,login,
password)
DBConnection conn=TurbineDB.getConnection("MyPool") ;
Vector v=StudentPeer.doSelect(new Criteria(),conn);
...
But that one is quite troublesome.
---- Begin Original Message ----
From: Jon Stevens <[EMAIL PROTECTED]>
Sent: Tue, 08 May 2001 23:40:41 -0700
To: Turbine-user <[EMAIL PROTECTED]>
Subject: Re: Connection object is null!
Excuse me ... could you READ my message?
databaseUrl is not a valid key!
-jon
on 5/8/01 11:26 PM, "Mahfudh Junaryanto" <[EMAIL PROTECTED]> wrote:
> Excuse me ... this is MSSQL not MySQL (S != y)
>
>
> ---- Begin Original Message ----
>
> From: Jon Stevens <[EMAIL PROTECTED]>
> Sent: Tue, 08 May 2001 23:17:06 -0700
> To: Turbine-user <[EMAIL PROTECTED]>
> Subject: Re: Connection object is null!
>
>
> on 5/8/01 9:40 PM, "Mahfudh Junaryanto" <[EMAIL PROTECTED]> wrote:
>
>> databaseUrl = jdbc:inetdae7:localhost
>> databaseDriver = com.inet.tds.TdsDriver
>> databaseUser = sa
>> databasePassword = sa
>> databaseHost = 127.0.0.1
>
> Uh. I can't believe I even need to comment on this.
>
> Those aren't valid keys for the properties file. LOOK AT THE
EXAMPLES.
>
> # ------------------------------------------------------------------
-
> #
> # �D A T A B A S E �S E T T I N G S
> #
> # ------------------------------------------------------------------
-
> # These are your database settings. �Look in the
> # org.apache.turbine.util.db.pool.* packages for more information.
> # The default driver for Turbine is for MySQL.
> #
> # The parameters to connect to the default database. �You MUST
> # configure these properly.
> # ------------------------------------------------------------------
-
>
> database.default.driver=org.gjt.mm.mysql.Driver
> database.default.url=jdbc:mysql://localhost:3306/Turbine
> database.default.username=username
> database.default.password=password
>
> -jon
>
> --
> If you come from a Perl or PHP background, JSP is a way to take
> your pain to new levels. --Anonymous
> <http://jakarta.apache.org/velocity/ymtd/ymtd.html>
>
>
> --------------------------------------------------------------------
-
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: turbine-user-
[EMAIL PROTECTED]
>
>
>
> ---- End Original Message ----
>
>
>
> ______________________________________________________________
> For the latest news, go to http://www.asiaone.com
> And get your free AsiaOne email account and home page
>
> --------------------------------------------------------------------
-
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: turbine-user-
[EMAIL PROTECTED]
>
--
If you come from a Perl or PHP background, JSP is a way to take
your pain to new levels. --Anonymous
<http://jakarta.apache.org/velocity/ymtd/ymtd.html>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---- End Original Message ----
______________________________________________________________
For the latest news, go to http://www.asiaone.com
And get your free AsiaOne email account and home page
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]