Thanks for your comments Doug. Good point re relevance of javax.sql API
docs.
I had a search through the J2EE spec. It does not appear to me to _require_
that DataSources are provided in a pooled implementation. It seems to be
preferred. For example:
J2EE.5.4.3 (J2EE Product Provider's
Hi,
I already answered this... Maybe my post was lost.
I had a search through the J2EE spec. It does not appear to me to
_require_
that DataSources are provided in a pooled implementation. It seems to
be
preferred. For example:
You're right. Containers are required to support binding
spamfilter,
as my mailbox has plenty of free space.
So I'm going to submit an enhacement suggestion for the docs (5.0.x/5.5.x),
as they imply that DBCP is always used for datasources.
a couple more follow up Qs to clarify if you wouldn't mind:
there are valid use-cases where you
don't want them pooled
Hi,
So I'm going to submit an enhacement suggestion for the docs
(5.0.x/5.5.x),
as they imply that DBCP is always used for datasources.
The docs give a DBCP example. If someone needs to be told another
implementation can be plugged in, they not competent enough to be doing
the plugging
OK thanks, some useful points. I'll do some more reading. :)
So I'm going to submit an enhacement suggestion for the docs
(5.0.x/5.5.x),
as they imply that DBCP is always used for datasources.
The docs give a DBCP example. If someone needs to be told another
implementation can
Hi,
The J2EE Platform Specification requires J2EE Application Servers to
make
available a DataSource implementation (that is, a connection pool for
JDBC
connections) for this purpose. Surely this is not correct given what
we've
already said, i.e. the connection pool is not required?
A
-
From: Steve Kirk [mailto:[EMAIL PROTECTED]
Sent: Tuesday 09 November 2004 00:45
To: 'Tomcat Users List'
Subject: Are all TC-managed DataSources pooled?
The docs under 'JDBC Data Sources' at
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-resources
-howto.html
say, The J2EE Platform
List'
Subject: Are all TC-managed DataSources pooled?
The docs under 'JDBC Data Sources' at
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-resources
-howto.html
say, The J2EE Platform Specification requires J2EE
Application Servers to
make available a DataSource implementation
? Or is
instead saying that J2EE requires pooled JDBC connections, or
maybe that
J2EE requires connections via a DataSource?
To meet the J2EE requirement the DataSource method must be made avalible in
a pooled configuration.
I didn't think that DataSources had to be pooled, based on
what is says
Hi,
No, the DataSources are not required to be pooled. J2EE only requires
that a container provide a DataSource binding. How that DataSource is
implemented is up to the container (which usually defers to the server
admin, as we do). You can use pooling or non-pooling DataSources, XA
*not* criticising the docs, I'm seeking clarification. I'm not
sure whether this is saying that a JDBC DataSource has to be pooled? Or is
instead saying that J2EE requires pooled JDBC connections, or maybe that
J2EE requires connections via a DataSource?
I didn't think that DataSources had
Hi all,
I found a way to create some DataSources in a webapp context from a properties file,
at tomcat startup.
I did it by creating a custom tag that I will add on the entrance page.
For information, doing it from a struts plugin also works if you create the
DataSources in the _Global_
Hi all,
Could anyone tell me the order of the initializations of the webapps contexts, the
webapps, the servlets (those run at startup).
I succeeded in creating my DataSources in my webapp context by redeploying my classes
with tomcat running, I just copied the newly compiled
classes
Hi all,
My goal is to dynamically add DataSources to the context of a specific webapp.
To do this, I wrote a struts plugin which reads a properties file.
I've looked at the admin webapp for the JMX/MBeanServer code, I used the code in class
SaveDataSourceAction.
And it works fine _only if_
I have a servlet that contains the following code in its init() method:
public void init(ServletConfig config) throws ServletException {
super.init(config);
try {
Context initCtx = new InitialContext();
Context envCtx = (Context)
Hi,
Where in server.xml is your Resource declaration? Is there a matching
resource-ref in your web.xml? (It's required). You also probably want
a factory parameter, as mentioned in the JNDI DataSources how-to.
Yoav Shapira
Millennium Research Informatics
-Original Message-
From
In both servers the Resource declarations are in the DefaultContext
block. All DataSources are shared by all webapps. I do not have a
resource-ref declaration in either web.xml ... I'll go look that up and
remedy. What is the purpose of the factory parameter, and what is an
appropriate
Hi,
In both servers the Resource declarations are in the DefaultContext
block. All DataSources are shared by all webapps.
You realize that by placing a Resource in DefaultContext you ensure that
a separate copy is created for each Context, right? That means if you
configure for 10 max
Contexts, you will have 5
DataSources with 50 total max connections possible. Unless this is
really what you want, consider having the DataSource defined in the
actual Context element instead of DefaultContext
Hi,
passwords), I THOUGHT I was sharing a single copy of the resources. I
understand now that a separate copy is created for every application.
But what I don't understand is how putting every resource in every
actual context is better. If I have 5 applications, each of whose
actual context
Anything is javax.servlet is container agnostic.
Anything in web.xml should be container agnostic.
Anything in server.xml or the context declaration (mywebapp.xml) is tomcat
specific.
-Tim
SH Solutions wrote:
Hi
I am using a DataSource inside a a servlet. Until now I am configuring it
with my
PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: DataSources
Date: Sat, 05 Jun 2004 17:07:57 -0400
Anything is javax.servlet is container agnostic.
Anything in web.xml should be container agnostic.
Anything in server.xml or the context
Hi
I am using a DataSource inside a a servlet. Until now I am configuring it
with my own code (Creating instance and using setters.)
What I would like to do now is, I would like to move that database
configuration to the web.xml file.
So far, I have a correct fragmet for server.xml:
On a standalone Tomcat server, I can define JDBC
resources in a context without problems. As soon as
Apache webserver is brought into the equation, the
JDBC datasources fail to initialize, exceptions
indicating that the resoruce parameters where null.
I don't know anything about Apache webserver
, Apache Webserver and Datasources
On a standalone Tomcat server, I can define JDBC
resources in a context without problems. As soon as
Apache webserver is brought into the equation, the
JDBC datasources fail to initialize, exceptions
indicating that the resoruce parameters where null.
I don't know
hi all,
I'm looking for the source code/class where the configured jndi
datasources
are parsed and registred.
I'm using Tomcat 4.18 and dbcp
I need to understand two features.
1) how a resource is registred in JNDI.
2)how a datasource is instanciated and registred as a jndi resource
Hello,
I am trying to transition my companies internal applications from IIS
contained ASP pages to jsp pages using struts on tomcat. Currently we
are using tomcat 4 but we could easily be swayed to switching to
version 5 as we are just in the beginning stages of development.
Currently our
On 02/23/2004 08:45 PM Dan Thiffault wrote:
Hello,
I am trying to transition my companies internal applications from
IIS contained ASP pages to jsp pages using struts on tomcat. Currently
we are using tomcat 4 but we could easily be swayed to switching to
version 5 as we are just in the
(InitialContext.java:347)
at FDPCalculator.clinit(Unknown Source)
ie this line of code fails
Context envCtx = (Context)initCtx.lookup(java:comp/env);
NOTE I have had the code working fine BEFORE I tried using DataSources
WHAT I am trying to achieve is the REMOVAL of env variables from my
-
From: Stefan Maric [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 05, 2004 5:35 AM
Subject: Configuring DataSources
Don't understand why this seems to be so difficult to resolve
Am using JWSDP1.3 - ie Tomcat 5 (Beta ???) + J2SDK1.4.2
from my initialization Code
I want to use one JDBC connection pool in my tomcat (4.1) instance for all contexts;
therefore I configure the DataSource in GlobalNamingResources. In each context I put
a ResourceLink so I can obtain the DataSource in my applications.
But now I have the problem that I had to execute some SQL
Hi,
Just a quickie. Can I use the DataSources I have set up in my
Server.xml/Web.xml
files for my web application in standalone/command line java apps?
Assuming Tomcat is running of course.
Or do I have to set up a separate JNDI thing for this (I'm new to JNDI
- can you tell?).
Best regards
- Original Message -
From: Chris Ward [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, November 27, 2003 1:09 AM
Subject: RE: Intermittent failures using DataSources
I'm not sure if it makes a difference but try putting the
ResourceLinks before the Realm definition
I'm not sure if it makes a difference but try putting the
ResourceLinks before the Realm definition in server.xml.
Liem
Thanks for the suggestion Liem - doesn't seem to make any
difference. I'm still getting the same response in
my browesr...
org.apache.jasper.JasperException: Unable to
invoking them with my context in the URL.
Since I had set my default context's docBase the same as my properly
configured
one, it *appeared* to be executing the JSP in the same way. In fact,
this seems
okay for getting to static html pages, but the JSPs were not picking up
the DataSources
Resource
Hi all,
Please excuse any going over of old ground with this question, I have
searched every archive
I can find. I have recently started using DataSources from JSPs using
the JSTL taglib (I think
this is a Tomcat rather than taglib question).
I've got a Context for my apps and initially had
using DataSources
Hi all,
Please excuse any going over of old ground with this question, I have
searched every archive
I can find. I have recently started using DataSources from JSPs using
the JSTL taglib (I think
this is a Tomcat rather than taglib question).
I've got a Context for my
DataSources are specified in JNDI
(the server.xml in the {CATALINA_HOME}/conf) and is not something that we
can feasibly park in CVS.
Is there a way to get the DataSources specified without modifying the
server.xml? Or, should we be making an ANT target that loads a second
instance of tomcat using a project
Howdy,
One idea that leaps to mind is to have ant tokens in your server.xml and
values for those tokens in your build.properties file. Have ant copy
the master server.xml to your local install and fill in the tokens for
your JNDI datasources.
The cactus approach is similar to this and not too
code. Our goal is to be able to pull down the project off of CVS and
with a single Ant target, get the application up and running on a local
install of Tomcat.
The problem that has risen is that our DataSources are specified in JNDI
(the server.xml in the {CATALINA_HOME}/conf) and is not something
Datasources
You can always specify it in a separate context configuration file.
Keep
the server.xml generic and put application specifics in context
configuration files.
Jake
At 08:47 AM 8/18/2003 -0500, you wrote:
Hi All,
We are currently developing an application and using CVS to manage our
12:47 PM
To: Tomcat Users List
Subject: RE: War Development w/ JNDI Datasources
Which file is this? I'd like to read up on it
put application specifics in context configuration files.
Russ
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: Monday, August 18
configuration files.
Russ
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: Monday, August 18, 2003 10:40 AM
To: Tomcat Users List
Subject: Re: War Development w/ JNDI Datasources
You can always specify it in a separate context configuration file.
Keep
the server.xml
Ah cool.didn't realize that.nicethats good to know.
Thanx Guys
-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: Monday, August 18, 2003 12:50 PM
To: Tomcat Users List
Subject: Re: War Development w/ JNDI Datasources
http
.
Later, reading a magazine of ORACLE finds an article on Six JDBC Tips goes Enterprise
Web Application (Setember/October 2002), more specifically with an example on
Datasources according to code below:
...
Context ctx = new InitialContext();
DataSource ds = (DataSource) ctx.lookup(java:comp/env
Is there a way to configure a datasource using ant
that will result in the server.xml updated to give me
datasources? I can delete, update and deploy
applications to Tomcat using the catalina-ant.jar
tasks, but can I also create/edit datasource?
I have done it in BEA WebLogic before, just
Hi all,
I've defined in a the server.xml file a DefaultContext where i have
declared JNDI variables and Datasources configurations for all
my web applications.
when I attempt to read those variables or to obtain DataSource
connexion in my java classes, everything works fine.
For performance
Hello,
I was thinking of writing DBCP DataSource stats MBean for the purpose of exposing the
metrics methods inherent in the DBCP BasicDataSource class (getNumIdle(),
getMaxActive(), etc.). Before I venture down that road, is this already on the
drawing board anywhere? Has anyone else done
On Wed, 2 Apr 2003, Halstead, Chris wrote:
Date: Wed, 2 Apr 2003 15:07:53 -0500
From: Halstead, Chris [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Stats MBean for DBCP DataSources
Hello,
I was thinking of writing DBCP
Subject: Re: Stats MBean for DBCP DataSources
On Wed, 2 Apr 2003, Halstead, Chris wrote:
Date: Wed, 2 Apr 2003 15:07:53 -0500
From: Halstead, Chris [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Stats MBean for DBCP
Hi,
I set up one JNDI/DBCP connection pool to one MySQL db following the JNDI
DataSources HOW-TO with seemingly no problems. I needed to add a second
MySQL running on the same machine under the same MySQL server (my W2K
development machine). I followed the exact same steps, only the db name
that, isn't it?
Steve
- Original Message -
From: s.bernstein [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, February 21, 2003 6:48 PM
Subject: Problem w/ 2 jdbc DataSources
Hi,
I set up one JNDI/DBCP connection pool to one MySQL db following the JNDI
DataSources HOW-TO with seemingly
Yeah, you're right. That dawned on me after the fact. Even a show tables
would have been better.
SB
- Original Message -
From: Ian Hunter [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, February 21, 2003 7:58 PM
Subject: Re: Problem w/ 2 jdbc DataSources
I recently picked up a copy of Mastering Tomcat Development (0471237647).
The following is an excerpt from the book's chapter entitled Databases,
Connection Pools, and JDBC:
Prior to Tomcat 4, there was no connection pooling functionality within
Tomcat, and you had to make a choice about the
]
Subject: Tomcat 4.x Provides Connection Pools for JDBC Datasources
Automatically?
I recently picked up a copy of Mastering Tomcat Development (0471237647).
The following is an excerpt from the book's chapter entitled Databases,
Connection Pools, and JDBC:
Prior to Tomcat 4, there was no connection
problematic in some way?
Thread unsafe? Maturity? Feature set? Performance? Support?
-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 29, 2003 17:52
To: Tomcat Users List
Subject: RE: Tomcat 4.x Provides Connection Pools for JDBC Datasources
I see in the documentation for Tomcat that all DataSources are defined in
server.xml, then made accessible to webapps through web.xml files.
Is it possible to dynamically create a DataSource?
Jay
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto
Hello Jay,
Theoretically, yes...through the Tomcat Admin application. You are
using DBCP datasources, right?
Jake
Thursday, December 19, 2002, 4:47:48 PM, you wrote:
JW I see in the documentation for Tomcat that all DataSources are defined in
JW server.xml, then made accessible to webapps
I guess it's time to read up on the Tomcat Admin app. :-)
Yes, I believe I am using the dbcp datasources along with the oracle jdbc
drivers.
I'm making the following assumption based on your response: It sounds like
I can theoretically create a new datasource in the tomcat admin, then have
the dbcp datasources along with the oracle jdbc
drivers.
I'm making the following assumption based on your response: It sounds like
I can theoretically create a new datasource in the tomcat admin, then have
access to it through web-app code without a restart of the system. But to
create a new
Hi!
Since my application running under both OracleAS and Tomcat 4.1.12 should obtain
connection pooling i tried to configure the application servers. Our application makes
use of OracleResultSet. I configured OracleAS by editing the data-sources.xml file
which works very well:
data-source
Try
parameternamefactory/namevalueorg.apache.commons.dbcp.BasicDataSourceFactory/value/parameter
Hope this helps.
-Original Message-
From: Thomas Achleitner [mailto:[EMAIL PROTECTED]]
Sent: Montag, 09. Dezember 2002 12:28
To: [EMAIL PROTECTED]
Subject: How to configure datasources
Is there as easy way to test datasources I set up in server.xml (or in the
Administrator app)?
John L. Mattos
302 East 88th Street Apt #5B
New York, New York 10128-4939
(M) (917) 202-8450
(www) http://www.mattos.ws
-
Do you Yahoo!?
HotJobs - Search new jobs
-Original Message-
From: John Mattos [mailto:mattosj;yahoo.com]
Sent: October 31, 2002 3:33 PM
To: Tomcat Users List
Subject: Testing Datasources
Is there as easy way to test datasources I set up in server.xml (or in the
Administrator app)?
John L. Mattos
302 East 88th Street Apt #5B
New York
.
Regards,
Phillip Qin
Software Developer
Canadian Shareowner
121 Richmond Street W, 7th Floor
Toronto, ON M5H 2K1
(416) 595-9600 ext 291
-Original Message-
From: John Mattos [mailto:mattosj;yahoo.com]
Sent: October 31, 2002 3:33 PM
To: Tomcat Users List
Subject: Testing Datasources
291
-Original Message-
From: John Mattos [mailto:mattosj;yahoo.com]
Sent: October 31, 2002 3:33 PM
To: Tomcat Users List
Subject: Testing Datasources
Is there as easy way to test datasources I set up in server.xml (or in the
Administrator app)?
John L. Mattos
302 East 88th
-Original Message-
From: John Mattos [mailto:mattosj;yahoo.com]
Sent: October 31, 2002 3:33 PM
To: Tomcat Users List
Subject: Testing Datasources
Is there as easy way to test datasources I set up in server.xml (or in
the Administrator app)?
John L. Mattos
302 East 88th
be added to the application that will enable datasources while
only changing the configuration files and not the code itself?
Thanks,
Tarek M. Nabil
--
To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help
the websphere datasource. Does Tomcat
provide connection pooling, or are there any other packages that can
be added to the application that will enable datasources while only
changing the configuration files and not the code itself?
Thanks,
Tarek M. Nabil
--
To unsubscribe, e-mail
I'm glad to hear it.
-Original Message-
From: [EMAIL PROTECTED] [mailto:wsweetman;mac.com]
Sent: Wednesday, October 23, 2002 6:15 PM
To: Tomcat Users List
Subject: Re: DataSources
tomcat apps can use the DataSource class.
On Wednesday, October 23, 2002, at 05:06 PM, Tarek M. Nabil wrote
Does anyone know how a connection pooled datasource
is handling the situation where the database becomes temporarily
unavailable?
I would like the datasource to automatically re-establish the connection
pool
once the DB is available again.
Is that somehow possible?
The system I am using is:
Tomcat fans,
The list of ResourceParams you can specify for an environment resource is
different between Tomcat 4.0.x and 4.1.x. Below is some servlet code you can
run to get an idea of exactly what parameters you can set for your
DataSource.
Vance
PROTECTED]
Sent: Friday, August 30, 2002 4:44 PM
Subject: Re: DB2 DataSources and Tomcat 4.0.4
Vance,
We're using DB2 via DataSource with Tomcat 4.0.3 using Struts
(data-source element in struts-config.xml), so I assume this means it
should work without Struts also. Below is a JSP snippet
Rick,
I think your results are relevant to my situation and I thank you very much
for trying the experiment. You are the first person to say what I've been
saying, which is
the DB2 app driver doesn't work with DataSources with Tomcat 4.0.4!
The 4.0.x DataSource code tries to do something
Vance,
We're using DB2 via DataSource with Tomcat 4.0.3 using Struts
(data-source element in struts-config.xml), so I assume this means it
should work without Struts also. Below is a JSP snippet that should tell
you if you're driver is working or not outside of Tomcat's Resource
Factory.
the access is non-local I realize the net driver is necessary.)
Vance
- Original Message -
From: Rick Yoesting [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, August 30, 2002 4:44 PM
Subject: Re: DB2 DataSources and Tomcat 4.0.4
Vance,
We're using DB2 via DataSource
Tomcat fans,
Here is some experimental data on trying to configure a DataSource with
Tomcat 4.0.4.
I don't have it working yet but have drawn the following conclusions:
(A) Putting the driver zip file on the catalina class path seems to make no
difference
(B) Putting the driver zip file renamed
Tomcat fans,
I've been trying to configure a DataSource in Tomcat 4.0.4 to use DB2 for...
well, for longer than I'd like to admit. I've searched the web and
experimented with jars vs. zips, with renaming them vs. rebuilding them,
with the lib folder vs. the common\lib folder, with url vs.
Okay, instead of trying to figure out what is wrong with my configuration,
maybe I should ask what is right with yours. If anyone is successfully
using MySQL DataSources with Tomcat 4.0.4, I would like to here from you.
Steve Mitchell
e-Business Architect/Developer
Integrated Corporate
] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 29, 2002 4:24 PM
To: Tomcat Users List
Subject: Are you successfully using DataSources with MySQL?
Okay, instead of trying to figure out what is wrong with my configuration,
maybe I should ask what is right with yours. If anyone is successfully
I'm trying to get the Microsoft SQL Driver to work in doing DataSources. It has a
class called com.microsoft.jdbcx.sqlserver.SQLServerDataSourceFactory, but I must not
be getting the config right or something because it keeps returning Nulls out of the
JNDI.
server.xml:
Resource
are you following microsoft's directions? they worked for me on jboss at
least.
On 5/23/02 8:04 AM, Adam Greene [EMAIL PROTECTED] wrote:
I'm trying to get the Microsoft SQL Driver to work in doing DataSources. It
has a class called com.microsoft.jdbcx.sqlserver.SQLServerDataSourceFactory
Hello
Im having problems creating a DataSource in a StandAlone Tomcat 4.0.1
with Windows XP. The InitialContext find the DataSource but it cames
null
This is the Code:
%
InitialContext ctxinit = new InitialContext();
%
%= ctxinit.lookup(java:/comp/env/jdbc/testDB) % NULL
In
Is Oracle driver (classes111.zip) visible to Tomcat.
I had to modify (in Linux) catalina.sh script to add driver's path to
the internal
CLASSPATH used by catalina.
Martin Miranda wrote:
Hello
Im having problems creating a DataSource in a StandAlone Tomcat 4.0.1
with Windows XP. The
Mark,
Since then ... nothing new ?
Thomas,
--
Thomas SMETS
rue J. Wytsmanstraat 62
1050 Bruxelles
yahoo-id : smetsthomas
- Original Message -
From: Mark [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: 17 February, 2002 11:48 PM
Subject: RE: Datasources context
with oracle ;(
find a working test sample ?
-Original Message-
From: Remy Maucherat [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 15, 2002 6:47 PM
To: Tomcat Users List
Subject: Re: Datasources context ?
I have got this error
Name java:comp is not bound in this Context
Title: RE: Datasources context ?
In fact I just reading the JNDI Howto and try to set up the thing for the very first time for JDBC access
Someone (Mark) seems to have the same kind of problem with oracle ;(
Where can I find a working test sample ?
-Original Message-
From: Remy
Title: Datasources context ?
I have got this error
Name java:comp is not bound in this Context
When I try the following code :
try {
Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup(java:comp/env);
DataSource ds = (DataSource) envCtx.lookup(jdbc/TestDb
May be you have defined at a wrong place your resource in your
server.xml file.
Fred.
Jacquet, Frederic wrote:
I have got this error
Name java:comp is not bound in this Context
When I try the following code :
try {
Context initCtx = new InitialContext();
Title: RE: Datasources context ?
I put in in my application context :
Context path=/test docBase=test debug=200
reloadable=true
Logger className=org.apache.catalina.logger.FileLogger
prefix=localhost_feedback. suffix=.log
timestamp=true/
Environment name=maxExemptions type
I have got this error
Name java:comp is not bound in this Context
When I try the following code :
try {
Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup(java:comp/env);
DataSource ds = (DataSource)
here. I have tried various combinations of DataSources,
parameter names and values to no avail. I either get null or throw a
tyrex exception (when type != javax.sql.DataSource). The JBossPooler
impelements DataSource, Referenceable and ObjectFactory so I though I
would be able to just plug
1) Has anyone had any success creating DataSources with db2? Can I see a
sample server.xml configuration?
2) does anyone have mod_webapp.dll available for connecting apache 1.3 and
Tomcat 4.0?
I know that raw database connections are fine i just haven't had any success
with the datasource
On Fri, 3 Aug 2001, Matt Barre wrote:
I know there is a way to configure DataSources using tomcat 4's
server.xml file. I've tried using the default examples to create my
own, but so far I haven't had any luck. The docs for this portion of
the project appear to not have been written yet
I know there is a way to configure DataSources using tomcat 4's server.xml file. I've
tried using the default examples to create my own, but so far I haven't had any luck.
The
docs for this portion of the project appear to not have been written yet. Can anyone
point
me toward a resource where I
Hi Guys,
In the EJB Specification there is a way of specifying a global datasource
for all applications. This can be looked up using JNI. Is there something
similar in tomcat, can I define a datasource that all applications can use,
or do I need to write my own property file or something?
96 matches
Mail list logo