It sounds like you have a configuration issue somewhere in ms sql server or
the jdbc url that you've created.
That is.. a jdbc URL of the the format:
jdbc:microsoft:sqlserver://localhost\\instancename:1433;DatabaseName=mydb
vs
jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=mydb
If you wan
The advantage that you identified for option 2 is the main reason why I
choose that route. In essence, yes, commons-dbcp is still being used but I
feel that keeping a separation between the deployment configuration and the
application assembler is enough of a reason to have that extra layer. Plus I
che.naming.java.javaURLContextFactory
#torque.dsfactory.bookstore.datasource.jndiEnvironment.java.naming.factory.u
rl.
pkgs = org.apache.naming
#torque.dsfactory.bookstore.datasource.defaultMaxConnections=10
~Sarav
--
There are 10 kinds of people in the world,
those who know binary and those who
Here're a couple of emails in the user group to get a sort of direction.
> Where should I initialize Torque so that all the sessions of the Webapp
use the
> same DBConnectionPool?
Try instantiating the pool to be referenced as a JNDI datasource.
http://nagoya.apache.org/eyebrowse/[EMAIL PROTECT
I'm not sure if option 2 will work for you...because new Date()
and new Date(new GregorianCalendar().getTimeInMillis())
will create a new object of the same time.
Java API states that Date "is intended to reflect coordinated universal time
(UTC)". To which the Default constructor "initializes it s
They're in the torque runtime jar. That's a separate download from
torque-gen.
-Original Message-
From: Derek B. Greer [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 25, 2004 2:52 PM
To: [EMAIL PROTECTED]
Subject: where are the classes?
Using the bookstore example configured for sybase
1. Create multiple *-schema.xml files. One for each table or set of tables.
2. Set the database name's value to be the same across all the files.
3. If you have foreign key constraints, make use of the external-schema tag.
Tables will only be generated once. Bewarned that a table's id-table sql
ge
Yes, it is possible. Just enter multiple dsfactory entries into the
*runtime* Torque.properties file.
Something like:
torque.database.default=db1
torque.database.db1.adapter=postgresql
torque.dsfactory.db1.factory=org.apache.torque.dsfactory.SharedPoolDataSourc
eFactory
torque.dsfactory.db1.pool
Drake,
Here's my setup. The torque properties is to pull from a JNDI datasource...
These datasources are created by the servlet container.
# Torque.properties
# Torque config to pull the connections from a JNDI DataSource.
# - The underlying JNDI DataSource may be pooled or unpooled.
#The de
How does struts initialize Torque? Is there such a method?
For me, I use an init servlet to load the Torque properties that
is loaded on startup. I can't remember where in the docs that
I read this suggestion.
Eg:
public final void init() {
String prefix = getServletContext().getRealPath
TED]
http://www.NequalsOne.com
-Original Message-
From: Benjamin Yu [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 10, 2004 4:39 PM
To: 'Apache Torque Users List'
Subject: RE: Torque versions and Maven plugin
I ended up listing almost all of torque's runtime dependencies. My b
Nathan McMinn
Application Developer
NequalsOne - HealthCare marketing tools
mailto:[EMAIL PROTECTED]
http://www.NequalsOne.com
-Original Message-
From: Benjamin Yu [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 10, 2004 11:15 AM
To: 'Ap
I'm going to guess that it sounds like your project.xml is missing the
dependancy entry.
More specifically, the specific error looks like it points to one of the
logging packages. Either log4j or commons-logging...
Here's a like of dependencies for torque:
For torque's generator:
http://db.apache.
> So it apparently does not have any impact on postgresql DB.
I can't remember when the feature was introduced, but postgresql supports
schemas (essentially namespaces for your db objects).
http://www.postgresql.org/docs/7.4/static/sql-createschema.html
Here's an example of what I'm talking abou
Are you sure your torque.database property is set to "mysql" not "mssql"?
The MS SQL create-db sql isn't implemented yet (3.1 release).
-Ben
-Original Message-
From: Robert Taylor [mailto:[EMAIL PROTECTED]
Sent: Friday, March 05, 2004 7:37 AM
To: [EMAIL PROTECTED]
Subject: [Newbie] Troubl
Hi, I noticed this message from november regarding the default properties:
http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]
g&msgNo=2743
I searched around the maven bug tracking and the mailing lists regarding
this issue since the post but didn't see any followup.
Has there been any updates o
16 matches
Mail list logo