RE: Are all TC-managed DataSources pooled?

2004-11-11 Thread Steve Kirk
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

RE: Are all TC-managed DataSources pooled?

2004-11-11 Thread Shapira, Yoav
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

RE: Are all TC-managed DataSources pooled?

2004-11-11 Thread Steve Kirk
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

RE: Are all TC-managed DataSources pooled?

2004-11-11 Thread Shapira, Yoav
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

RE: Are all TC-managed DataSources pooled?

2004-11-11 Thread Steve Kirk
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

RE: Are all TC-managed DataSources pooled?

2004-11-11 Thread Shapira, Yoav
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

RE: Are all TC-managed DataSources pooled?

2004-11-10 Thread Steve Kirk
- 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

Re: Are all TC-managed DataSources pooled?

2004-11-10 Thread Peng Tuck Kwok
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

Re: Are all TC-managed DataSources pooled?

2004-11-10 Thread Parsons Technical Services
? 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

RE: Are all TC-managed DataSources pooled?

2004-11-09 Thread Shapira, Yoav
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

Are all TC-managed DataSources pooled?

2004-11-08 Thread Steve Kirk
*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

RE: Adding DataSources to a specific webapp context using MBeanServer - Success (using a custom tag)

2004-10-15 Thread Jérôme BATON
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_

RE: Adding DataSources to a specific webapp context using MBeanServer - half success

2004-10-12 Thread Jérôme BATON
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

Adding DataSources to a specific webapp context using MBeanServer

2004-10-11 Thread Jérôme BATON
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_

Binding DataSources to Contexts in Tomcat 4.06/4.1

2004-08-19 Thread Jeffrey Barnett
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)

RE: Binding DataSources to Contexts in Tomcat 4.06/4.1

2004-08-19 Thread Shapira, Yoav
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

Re: Binding DataSources to Contexts in Tomcat 4.06/4.1

2004-08-19 Thread Jeffrey Barnett
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

RE: Binding DataSources to Contexts in Tomcat 4.06/4.1

2004-08-19 Thread Shapira, Yoav
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

Re: Binding DataSources to Contexts in Tomcat 4.06/4.1

2004-08-19 Thread Jeffrey Barnett
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

RE: Binding DataSources to Contexts in Tomcat 4.06/4.1

2004-08-19 Thread Shapira, Yoav
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

Re: DataSources

2004-06-05 Thread Tim Funk
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

Re: DataSources

2004-06-05 Thread Ariel Valentin
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

DataSources

2004-06-04 Thread SH Solutions
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:

[Q] Tomcat, Apache Webserver and Datasources

2004-04-13 Thread Riaan Oberholzer
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

RE: [Q] Tomcat, Apache Webserver and Datasources

2004-04-13 Thread Shapira, Yoav
, 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

parsing the jndi datasources source code

2004-03-29 Thread meissa . Sakho
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

JAAS and Datasources

2004-02-23 Thread Dan Thiffault
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

Re: JAAS and Datasources

2004-02-23 Thread Adam Hardy
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

Configuring DataSources

2004-02-05 Thread Stefan Maric
(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

Re: Configuring DataSources

2004-02-05 Thread daniel
- 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

JNDI DataSources

2004-01-18 Thread Pfingstl Gernot
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

Tomcat DataSources in non-Tomcat programs.

2003-12-09 Thread Chris Ward
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

Re: Intermittent failures using DataSources

2003-12-01 Thread Liem Do
- 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

RE: Intermittent failures using DataSources

2003-11-27 Thread Chris Ward
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

RE: Intermittent failures using DataSources

2003-11-27 Thread Chris Ward
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

Intermittent failures using DataSources

2003-11-26 Thread Chris Ward
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

Re: Intermittent failures using DataSources

2003-11-26 Thread Liem Do
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

War Development w/ JNDI Datasources

2003-08-18 Thread Hookom, Jacob
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

RE: War Development w/ JNDI Datasources

2003-08-18 Thread Shapira, Yoav
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

Re: War Development w/ JNDI Datasources

2003-08-18 Thread Jacob Kjome
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

RE: War Development w/ JNDI Datasources

2003-08-18 Thread Pitre, Russell
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

RE: War Development w/ JNDI Datasources

2003-08-18 Thread Shapira, Yoav
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

Re: War Development w/ JNDI Datasources

2003-08-18 Thread John Turner
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

RE: War Development w/ JNDI Datasources

2003-08-18 Thread Pitre, Russell
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

JNDI DataSources

2003-08-18 Thread Sebastião Carlos Santos
. 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

How do I configure datasources using ANT?

2003-06-18 Thread Riaan Oberholzer
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

jndi and datasources

2003-06-12 Thread meissa . Sakho
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

Stats MBean for DBCP DataSources

2003-04-02 Thread Halstead, Chris
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

Re: Stats MBean for DBCP DataSources

2003-04-02 Thread Craig R. McClanahan
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

RE: Stats MBean for DBCP DataSources

2003-04-02 Thread Halstead, Chris
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

Problem w/ 2 jdbc DataSources

2003-02-21 Thread s.bernstein
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

Re: Problem w/ 2 jdbc DataSources

2003-02-21 Thread s.bernstein
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

Re: Problem w/ 2 jdbc DataSources

2003-02-21 Thread s.bernstein
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

Tomcat 4.x Provides Connection Pools for JDBC Datasources Automatically?

2003-01-29 Thread Sean Dockery
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

RE: Tomcat 4.x Provides Connection Pools for JDBC Datasources Automatically?

2003-01-29 Thread Filip Hanik
] 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

RE: Tomcat 4.x Provides Connection Pools for JDBC Datasources Automatically?

2003-01-29 Thread Sean Dockery
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

Dynamic DataSources

2002-12-19 Thread Jay Wright
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

Re: Dynamic DataSources

2002-12-19 Thread Jacob Kjome
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

RE: Dynamic DataSources

2002-12-19 Thread Jay Wright
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

RE: Dynamic DataSources

2002-12-19 Thread Jacob Kjome
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

How to configure datasources in tomcat 4.1.12 to obtain OracleResultSets

2002-12-09 Thread Thomas Achleitner
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

RE: How to configure datasources in tomcat 4.1.12 to obtain OracleResultSets

2002-12-09 Thread Roberts, Eric
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

Testing Datasources

2002-10-31 Thread John Mattos
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

RE: Testing Datasources

2002-10-31 Thread pqin
-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

RE: Testing Datasources

2002-10-31 Thread John Mattos
. 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

Re: Testing Datasources

2002-10-31 Thread John Mattos
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

Re: Testing Datasources

2002-10-31 Thread shawn
-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

DataSources

2002-10-23 Thread Tarek M. Nabil
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

Re: DataSources

2002-10-23 Thread wsweetman
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

RE: DataSources

2002-10-23 Thread Tarek M. Nabil
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

How do Datasources handle dis- and re-connects from a DB?

2002-09-30 Thread Boris Schroder
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:

Reflecting on Tomcat DataSources

2002-09-03 Thread Vance Christiaanse
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

Re: DB2 DataSources and Tomcat 4.0.4

2002-09-03 Thread Rick Yoesting
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

Re: DB2 DataSources and Tomcat 4.0.4

2002-09-03 Thread Vance Christiaanse
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

Re: DB2 DataSources and Tomcat 4.0.4

2002-08-30 Thread Rick Yoesting
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.

Re: DB2 DataSources and Tomcat 4.0.4

2002-08-30 Thread Vance Christiaanse
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 4.0 DataSources

2002-08-29 Thread Vance Christiaanse
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

DB2 DataSources and Tomcat 4.0.4

2002-08-29 Thread Vance Christiaanse
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.

Are you successfully using DataSources with MySQL?

2002-08-29 Thread stevem
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

RE: Are you successfully using DataSources with MySQL?

2002-08-29 Thread neal
] [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

DataSources and JNDI

2002-05-23 Thread Adam Greene
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

Re: DataSources and JNDI

2002-05-23 Thread Phillip Morelock
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

DataSources in Tomcat 4 / Windows XP

2002-03-20 Thread Martin Miranda
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

Re: DataSources in Tomcat 4 / Windows XP

2002-03-20 Thread Lev Assinovsky
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

Re: Datasources context ?

2002-03-04 Thread tsmets
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

RE: Datasources context ?

2002-02-17 Thread Mark
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

RE: Datasources context ?

2002-02-16 Thread Jacquet, Frederic
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

Datasources context ?

2002-02-15 Thread Jacquet, Frederic
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

Re: Datasources context ?

2002-02-15 Thread Frederic Monclar
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();

RE: Datasources context ?

2002-02-15 Thread Jacquet, Frederic
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

Re: Datasources context ?

2002-02-15 Thread Remy Maucherat
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)

Resource References for DataSources

2002-01-02 Thread John Moore
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

Tomcat 4.0: Datasources and DB2

2001-10-02 Thread Brian Richards
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

Re: tomcat 4 datasources

2001-08-04 Thread Craig R. McClanahan
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

tomcat 4 datasources

2001-08-03 Thread Matt Barre
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

Datasources?

2001-02-05 Thread Robert Keith
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?