Hi,
When
you configure DODS to use “DataSourceConnectionAllocator” and
“DataSourceDBConnectionFactory” you are practically telling DODS to try to use
external “javax.sql.DataSource” implementation!
This
DataSource instance should be provided by Enhydra (Tomcat) server and referenced
trough replacement parameter (“DataSourceName”).
In
your case (sample configuration):
<env-entry>
<env-entry-name>DatabaseManager/DB/i10/Connection/DataSourceName</env-entry-name>
<env-entry-value>jndi:i10</env-entry-value>
<env-entry-type>java.lang.String</env-entry-type>
</env-entry>
Standard
mechanism for some application resource initialization and configuration is
trough context descriptor files (<app_context>/META-INF/context.xml) and
corresponding <Resource/> definitions.
Please,
consult Tomcat documentation for additional details about this topic
(http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html)!
I’ve
prepared sample context descriptor for you and did (DataSource related)
configuration changes in your DatabaseManager configuration
(attached).
Also,
please use the enhydra mailing list whenever you can (not my personal
email)!
I’m
sure that others mid experience the same “problems” during their migration to
the latest TAS (Enhydra) release.
Please,
don’t hesitate to ask for any further help!
Regards,
Slobodan
From: Luis Oliveira
[mailto:loliveira@xxxxxxxxxxxx]
Sent: 27. jun 2007
11:48
To: slobodan@xxxxxxxxxxxxx
Subject: RE: [enhydra]
Multiserver Admin Console in TAS7
Slobodan
In
previous mail, I forgot to send you the database configuration
file.
Regards
Luis
Oliveira
From: Luis Oliveira
[mailto:loliveira@xxxxxxxxxxxx]
Sent: quarta-feira, 27 de Junho de
2007 10:40
To: 'slobodan@xxxxxxxxxxxxx'
Subject: RE:
[enhydra] Multiserver Admin Console in TAS7
Hi
Slobodan
Thanks
for your answer.
I have
already deployed Lambda Probe. It is a really interesting tool. However, I can't
see information about data sources, When I click on "Data Sources", the tool
presents an error message "There no data sources configured for this Tomcat
instance". The connection allocator of my webapp is
"com.lutris.appserver.server.sql.datasource.DataSourceConnectionAllocator".
In
attachment, I send you my database configuration.
Can you
help me ? Thanks.
Best
regards
Luis Oliveira
From: Slobodan
Vujasinovic [mailto:slobodan@xxxxxxxxxxxxx]
Sent: quarta-feira, 27 de
Junho de 2007 8:37
To: enhydra@xxxxxxxxxxxxx
Subject: RE:
[enhydra] Multiserver Admin Console in TAS7
Hi
Luis,
For
basic application management functions (start, stop, reload, undeploy, deploy
and delete) you can use either “EnhydraManager” or “manager” (Tomcat Manager)
application.
I’m
more used to “EnhydraManager”! It has slightly bigger feature list and supports
multi-service/host configurations.
Regarding
monitoring tool, you can find number of Tomcat monitoring tools on the internet
(some of them will allow you to monitor your DB
connections).
I’m
using “Lambda Probe” (formerly known as Tomcat Probe - GPL license) - http://www.lambdaprobe.org
Regards,
Slobodan
From: Luis Oliveira
[mailto:loliveira@xxxxxxxxxxxx]
Sent: 26. jun 2007
20:06
To: enhydra@xxxxxxxxxxx
Subject: [enhydra] Multiserver
Admin Console in TAS7
Hi
I used to develop applications to Enhydra
3.x and manage it using Multiserver Administration Console. Now these
applications are running in TAS (Together Application Server) and I
would like to know if there’s a similar application on TAS7 or Enhydra 6.x.
How can you stop and start a webapp on TAS7?
Is it necessary to shutdown the TomCat to stop only one application or is it
possible to stop and start each webapp independently? Besides, how can
you known the number of connections to database that each webapp have
allocated?
Thanks.
Best Regards
Luis Oliveira
|
LUIS
OLIVEIRA
| SOFTWARE ENGINEER
LOLIVEIRA@xxxxxxxxxxxx
PHONE:
+ 351 253 305 250
FAX :
+351 253 305 251
www.mobicomp.com |
|
|
|

________________________________________________________________
ABOUT
SOLUTIONS | WIRELESS
WORLD
CONFIDENTIALITY
NOTICE: This message, as well as existing attached files, is confidential
and intended exclusively for the individual(s) named as addressees. If you
are not the intended recipient, you are kindly requested not to make any
use whatsoever of its contents and to proceed to the destruction of the
message, thereby notifying the sender. DISCLAIMER: The sender of this
message can not ensure the security of its electronic transmission and
consequently does not accept liability for any fact which may interfere
with the integrity of its content. |