Cool. So does this mean we’re ready to
take another spin on the driver? Everything’s in now?
-----Original Message-----
From:
cosmos-dev-bounces@xxxxxxxxxxx [mailto:cosmos-dev-bounces@xxxxxxxxxxx] On Behalf Of Sheldon Lee-Loy
Sent: Thursday, February 22, 2007
1:31 PM
To: Cosmos Dev
Subject: RE: [cosmos-dev] Updated
DMS code
The configuration information for the datasources are
now in the web.xml file. The following is part of the the web.xml
that shows the servlet parameters used to configure the datasources.
<!-- Cosmos Parameters -->
<!-- SML-IF file location relative to the birt viewer
director -->
<context-param>
<param-name>SML_FILE_LOCATION</param-name>
<param-value>topologies/Topologies_sml-if.xml</param-value>
</context-param>
<context-param>
<param-name>JDBC_LOCATION</param-name>
<param-value>file:/d:/db-derby-10.2.2.0-bin/lib/derbyclient.jar</param-value>
</context-param>
<context-param>
<param-name>JDBC_HOST</param-name>
<param-value>127.0.0.1</param-value>
</context-param>
<context-param>
<param-name>JDBC_PORT</param-name>
<param-value>1527</param-value>
</context-param>
<context-param>
<param-name>JDBC_USER</param-name>
<param-value>APP</param-value>
</context-param>
<context-param>
<param-name>JDBC_PASSWORD</param-name>
<param-value>APP</param-value>
</context-param>
<!-- END OF Demo Pameters -->
The
code is checked into CVS. I added a WEB-INF directory under the
org.eclipse.cosmos/examples/eclipseCon07/org.eclipse.cosmos.examples.eclipsecon07.repository
CVS module that contains the web.xml file you should use with the birt viewer
war file.
Thanks,
Sheldon
______________________________________
Sheldon Lee-Loy
Problem Determination Group, IBM Toronto Lab
"Hawkins, Joel"
<Joel.Hawkins@xxxxxxxxxxxxx>
Sent
by: cosmos-dev-bounces@xxxxxxxxxxx
22/02/2007 10:43 AM
Please
respond to
Cosmos Dev <cosmos-dev@xxxxxxxxxxx>
|
|
To
|
"Cosmos Dev"
<cosmos-dev@xxxxxxxxxxx>
|
cc
|
|
Subject
|
RE: [cosmos-dev] Updated DMS code
|
|
Marius,
Did you make the same
change to locate the topology file? I did a synch this morning and didn’t see
any changes there. I checked in a change last night to at least let us set an
environment variable, but I think your datasource change (and a concomitant change
to the report) would make a better, and certainly more consistent, solution.
Cheers,
Joel
-----Original Message-----
From: cosmos-dev-bounces@xxxxxxxxxxx
[mailto:cosmos-dev-bounces@xxxxxxxxxxx] On
Behalf Of Marius Slavescu
Sent: Thursday, February 22, 2007 10:25 AM
To: Cosmos Dev
Subject: RE: [cosmos-dev] Updated DMS code
Joel,
I asked Sheldon to change the reports because the reports should drive the
accessors, currently the reports don't pass a valid datasource and the accessor
creates a default one with the hardcoded URI.
I didn't use the patch with the system variable, as the config info should come
from the web app configuration or user preference.
Thanks !
Marius Slavescu
IBM Toronto Laboratory, Canada
Phone: 905-413-3610
"Hawkins, Joel"
<Joel.Hawkins@xxxxxxxxxxxxx>
Sent by: cosmos-dev-bounces@xxxxxxxxxxx
02/22/2007 08:21 AM
Please
respond to
Cosmos Dev <cosmos-dev@xxxxxxxxxxx>
|
|
To
|
"Cosmos Dev"
<cosmos-dev@xxxxxxxxxxx>
|
cc
|
|
Subject
|
RE: [cosmos-dev] Updated DMS code
|
|
Sheldon, please let me know when this is done and I’ll repackage the driver.
Marius, I checked in an update to the ResourceDataAccessor to get the location of
the sml-if file based on an optional environment parameter. No change required
to Sheldon’s report – just an environment variable set during startup (which is
taken care of by the tomcat startup script – documented in the driver
setup.html). Do we want to change the topology report (and the
ResourceDataAccessor) to keep things consistent?
Also, I guess you can
ignore the patch I sent you – it used the same environment variable to locate
the db driver.
I’m going to stop
changing code for now – once again, let me know when everybody’s done and I’ll
upload a new driver.
Cheers,
Joel
-----Original Message-----
From: cosmos-dev-bounces@xxxxxxxxxxx
[mailto:cosmos-dev-bounces@xxxxxxxxxxx] On
Behalf Of Marius Slavescu
Sent: Thursday, February 22, 2007 1:48 AM
To: cosmos-dev@xxxxxxxxxxx
Subject: [cosmos-dev] Updated DMS code
I updated the TPTP DMS code to support real RDB data sources for log and
statistical schemas and also updated the COSMOS testcases to provide a real data
source to the data accessors.
Sheldon please update the reports to use the same datasources as those in the
testcases, the report should pass a valid data source to the data accessors.
You'll need to retrieve from the web application configuration file the URI
(basically the parts of the URI that are captured as constants in the tescase).
Thanks !
Marius Slavescu
IBM Toronto Laboratory, Canada
Phone: 905-413-3610
=00The contents of this e-mail are intended for the
named addressee only. It contains information that may be confidential. Unless
you are the named addressee or an authorized designee, you may not copy or use
it, or disclose it to anyone else. If you received it in error please notify us
immediately and then destroy it._______________________________________________
cosmos-dev mailing list
cosmos-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cosmos-dev
=00The contents of this e-mail are intended for the
named addressee only. It contains information that may be confidential. Unless
you are the named addressee or an authorized designee, you may not copy or use
it, or disclose it to anyone else. If you received it in error please notify us
immediately and then destroy it._______________________________________________
cosmos-dev mailing list
cosmos-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cosmos-dev
=00