struts, hibernate, datasources .... so lost

2003-12-19 Thread Rich Garabedian
After spending days on the net and the mailing lists I find something is just not getting through to me. I feel that what I'm doing is conceptually simple; yet I can't seem to actually implement any of it. I think I have a rudimentary understanding of how to integrate Hibernate into Struts, but

Re: struts, hibernate, datasources .... so lost

2003-12-19 Thread David Erickson
] To: [EMAIL PROTECTED] Sent: Friday, December 19, 2003 7:35 AM Subject: struts, hibernate, datasources so lost After spending days on the net and the mailing lists I find something is just not getting through to me. I feel that what I'm doing is conceptually simple; yet I can't seem to actually

Re: struts, hibernate, datasources .... so lost

2003-12-19 Thread David Erickson
, 2003 11:12 AM Subject: RE: struts, hibernate, datasources so lost David, David, thanks so much for your note. I guess I'll try having Hibernate setup the datasource if I can't get it to work they way I'm trying now. Doing that really bothers me though. I thought datasources were

RE: struts, hibernate, datasources .... so lost

2003-12-19 Thread Rich Garabedian
? -Original Message- From: David Erickson [mailto:[EMAIL PROTECTED] Sent: Friday, December 19, 2003 1:31 PM To: [EMAIL PROTECTED] Subject: Re: struts, hibernate, datasources so lost Rich, Ya the binding thing with JNDI and tomcat is messed up.. for some reason I've read its

Re[2]: struts, hibernate, datasources .... so lost

2003-12-19 Thread Jens Halm
DE Regarding what happens after you load something from Hibernate. I'm still DE learning this myself, but I assume if you don't load ANYTHING lazily then DE you should be able to do anything with that variable and have no worries. DE However if you have an object that contains say a set of other

Re: struts, hibernate, datasources .... so lost

2003-12-19 Thread David Erickson
, datasources so lost I think that makes sense. So basically you are saying I HAVE to implement the filter and doing something like this: try { Context ctx = new InitialContext(); SessionFactory sf = (SessionFactory)ctx.lookup(prospecting/hibernate/SessionFactory); Session

datasources and oracle 9i

2003-12-17 Thread Claire Wall
hi, i am using Oracle 9i as my datasource and have declared it in my struts-config as follows: data-source key=DB type=oracle.jdbc.pool.OracleConnectionPoolDataSource set-property property=autoCommit value=false/ set-property property=description value=DB_Connection_Pool/

Datasources Tomcat/Struts

2003-10-28 Thread Mathieu Grimault
Hello, next to my question about deprecation, i've try to make Tomcat JNDI Datasource working without success... I followed the How-to but nothing goes well. My configuration is : - Tomcat 4.1.27 - JDK 1.4.2 - Struts 1.1 - MySQL 4 When i try to make a request on the database i've got :

Re: Datasources Tomcat/Struts

2003-10-28 Thread virupaksha
: Datasources Tomcat/Struts Hello, next to my question about deprecation, i've try to make Tomcat JNDI Datasource working without success... I followed the How-to but nothing goes well. My configuration is : - Tomcat 4.1.27 - JDK 1.4.2 - Struts 1.1 - MySQL 4 When i try to make a request on the database

struts 1.1:Multiple DataSources

2003-03-20 Thread John Wilson
Using struts 1.1 with SQL2000 Database. Defined two data sources in my strust-conf.xml: data-sources data-source set-property property=key value=one / ... ... /data-source data-source set-property property=key value=two / ... ...

RE: struts 1.1:Multiple DataSources

2003-03-20 Thread Jimmy Emmanual
for Struts 1.0.2. Not sure if it will work with any other version. Thanks to Dennis Lee and David Graham!! -Original Message- From: John Wilson [mailto:[EMAIL PROTECTED] Sent: March 20, 2003 3:54 AM To: '[EMAIL PROTECTED]' Subject: struts 1.1:Multiple DataSources Using struts 1.1

Tomcat 4.1.18, DBCP, DataSources - What are people using?

2003-02-26 Thread David Haynes
After working on this for most of the day, I have discovered that Tomcat 4.1.18 and DBCP do not play well together. There is a bug against Tomcat for this (I have *got* to remember to check the bugs databases sooner ;-) ), but no analysis or corrective action has been recorded to date. So, my

RE: Tomcat 4.1.18, DBCP, DataSources - What are people using?

2003-02-26 Thread pqin
PM To: [EMAIL PROTECTED] Subject: Tomcat 4.1.18, DBCP, DataSources - What are people using? After working on this for most of the day, I have discovered that Tomcat 4.1.18 and DBCP do not play well together. There is a bug against Tomcat for this (I have *got* to remember to check the bugs

RE: Tomcat 4.1.18, DBCP, DataSources - What are people using?

2003-02-26 Thread Raible, Matt
To: [EMAIL PROTECTED] Subject: RE: Tomcat 4.1.18, DBCP, DataSources - What are people using? What is the bug that you discovered? Mine works just fine. Tomcat 4.1.18 Struts 1.1-rc1 Oracle 8i Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing

RE: Tomcat 4.1.18, DBCP, DataSources - What are people using?

2003-02-26 Thread David Haynes
To: [EMAIL PROTECTED] Subject: RE: Tomcat 4.1.18, DBCP, DataSources - What are people using? What is the bug that you discovered? Mine works just fine. Tomcat 4.1.18 Struts 1.1-rc1 Oracle 8i Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original

RE: Tomcat 4.1.18, DBCP, DataSources - What are people using?

2003-02-26 Thread pqin
Haynes [mailto:[EMAIL PROTECTED] Sent: February 26, 2003 5:12 PM To: 'Struts Users Mailing List' Subject: RE: Tomcat 4.1.18, DBCP, DataSources - What are people using? I'm setting up named data sources with the following: data-sources data-source key=eha type

RE: Tomcat 4.1.18, DBCP, DataSources - What are people using?

2003-02-26 Thread Raible, Matt
Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 3:15 PM To: [EMAIL PROTECTED] Subject: RE: Tomcat 4.1.18, DBCP, DataSources - What are people using? Make sure commons-dbcp and pooling are not in your common/lib, use tomcat's. Besides, I

RE: Tomcat 4.1.18, DBCP, DataSources - What are people using?

2003-02-26 Thread pqin
: February 26, 2003 5:24 PM To: 'Struts Users Mailing List' Subject: RE: Tomcat 4.1.18, DBCP, DataSources - What are people using? I use Tomcat's JNDI database, not struts - my config is below. Make sure that classes12.jar is in common/lib. Matt web.xml resource-ref descriptionDB

Re: Tomcat 4.1.18, DBCP, DataSources - What are people using?

2003-02-26 Thread Vic Cekvenich
My DAO's DBCP-standalone works with Tomcat; and you can switch to JNDI pool. Source: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/basicportal/basicportal/src/basicWebLib/org/apache/basicWebLib/DAO/BasicDAOImpl.java .V David Haynes wrote: After working on this for most of the day, I have

RE: Tomcat 4.1.18, DBCP, DataSources - What are people using?

2003-02-26 Thread Marco Tedone
I'm using Jboss connection pooling and access it from a session bean. Marco -Original Message- From: David Haynes [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 10:12 PM To: 'Struts Users Mailing List' Subject: RE: Tomcat 4.1.18, DBCP, DataSources - What are people

dataSources outside of actionservlet

2002-12-17 Thread Mark Lowe
hello you'll all have to forgive my stupidity but i've been having real problems trying to reference the datasource specified in config.xml in my business logic classes. I've been very good and seperated everything as one should. but i really need a straight answer to this (i.e. an example that

FW: dataSources outside of actionservlet

2002-12-17 Thread Mark
Mailing List [EMAIL PROTECTED] Subject: dataSources outside of actionservlet hello you'll all have to forgive my stupidity but i've been having real problems trying to reference the datasource specified in config.xml in my business logic classes. I've been very good and seperated everything

Re: FW: dataSources outside of actionservlet

2002-12-17 Thread Matthias Bauer
if i'm wrong). -- Forwarded Message From: Mark Lowe [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] Date: Tue, 17 Dec 2002 09:03:33 +0100 To: Struts Users Mailing List [EMAIL PROTECTED] Subject: dataSources outside of actionservlet hello you'll all have to forgive my

FW: dataSources outside of actionservlet

2002-12-17 Thread Mark
thanks in advance mark Many thanks in advance mark -- Forwarded Message From: Mark [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] Date: Tue, 17 Dec 2002 11:18:25 +0100 To: Struts Users Mailing List [EMAIL PROTECTED] Subject: FW: dataSources outside

Re: dataSources outside of actionservlet

2002-12-17 Thread Mark
it the more i think it a reasonable one (please tell me if i'm wrong). -- Forwarded Message From: Mark Lowe [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] Date: Tue, 17 Dec 2002 09:03:33 +0100 To: Struts Users Mailing List [EMAIL PROTECTED] Subject: dataSources

Re: FW: dataSources outside of actionservlet

2002-12-17 Thread keithBacon
Lowe [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] Date: Tue, 17 Dec 2002 09:03:33 +0100 To: Struts Users Mailing List [EMAIL PROTECTED] Subject: dataSources outside of actionservlet hello you'll all have to forgive my stupidity but i've been having real problems

Re: FW: dataSources outside of actionservlet

2002-12-17 Thread keithBacon
-To: Struts Users Mailing List [EMAIL PROTECTED] Date: Tue, 17 Dec 2002 11:18:25 +0100 To: Struts Users Mailing List [EMAIL PROTECTED] Subject: FW: dataSources outside of actionservlet Sorry to repost this question, but the more i think about it the more i think it a reasonable one (please

Re: dataSources outside of actionservlet

2002-12-17 Thread Mark
). -- Forwarded Message From: Mark Lowe [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] Date: Tue, 17 Dec 2002 09:03:33 +0100 To: Struts Users Mailing List [EMAIL PROTECTED] Subject: dataSources outside of actionservlet hello you'll all have to forgive my stupidity

RE: FW: dataSources outside of actionservlet

2002-12-17 Thread Edgar P. Dollin
Another option is to aquire the database connection via jndi when you need it. Edgar -Original Message- From: Matthias Bauer [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 17, 2002 9:05 AM To: 'Struts Users Mailing List' Subject: Re: FW: dataSources outside of actionservlet

Re: dataSources outside of actionservlet

2002-12-17 Thread Mark
the database connection via jndi when you need it. Edgar -Original Message- From: Matthias Bauer [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 17, 2002 9:05 AM To: 'Struts Users Mailing List' Subject: Re: FW: dataSources outside of actionservlet The normal thing

RE: dataSources outside of actionservlet

2002-12-17 Thread Edgar P. Dollin
:13 AM To: Struts Users Mailing List Subject: Re: dataSources outside of actionservlet I know that , i've read that .. But I what i really want to know is this Without importing any servlet stuff Some_means_of_getting_to_details_in_config_xml.getDatasource(mykey); Many thanks mark On 17-12-2002

Re: dataSources outside of actionservlet

2002-12-17 Thread Mark
(); Edgar -Original Message- From: Mark [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 17, 2002 10:13 AM To: Struts Users Mailing List Subject: Re: dataSources outside of actionservlet I know that , i've read that .. But I what i really want to know is this Without importing any

Re: dataSources outside of actionservlet

2002-12-17 Thread Mark
:[EMAIL PROTECTED]] Sent: Tuesday, December 17, 2002 10:13 AM To: Struts Users Mailing List Subject: Re: dataSources outside of actionservlet I know that , i've read that .. But I what i really want to know is this Without importing any servlet stuff

Re: dataSources outside of actionservlet

2002-12-17 Thread J Aaron Farr
On Tue, 17 Dec 2002 17:45, Mark [EMAIL PROTECTED] wrote: Thanks edgar.. For those folks who are starting out or don't read binary Context and InitialContext are part of the javax.naming package So you'll need to import javax.naming.Context; import javax.naming.InitialContext; The

Re: dataSources outside of actionservlet

2002-12-17 Thread Mark
Thanks the last answer does the job, thanks jaaron.. The JNDI solution seemed a bit crack induced and a bit too cyptic for my low iq.. :) Cheers again mark On 17-12-2002 19:52, J Aaron Farr [EMAIL PROTECTED] wrote: On Tue, 17 Dec 2002 17:45, Mark [EMAIL PROTECTED] wrote: Thanks edgar..

Datasources and Connection

2002-12-05 Thread Dinesh
Hi, I am using Tomcat for Struts and MS SQL Driver SQL Server 2000. Can any one tell me how to configure the Datasources and then to get a connection from that datasource. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: Datasources and Connection

2002-12-05 Thread David Graham
] To: [EMAIL PROTECTED] Subject: Datasources and Connection Date: Thu, 05 Dec 2002 19:38:32 +0530 Hi, I am using Tomcat for Struts and MS SQL Driver SQL Server 2000. Can any one tell me how to configure the Datasources and then to get a connection from that datasource. -- To unsubscribe, e-mail

Re: datasources

2002-04-30 Thread Eddie Bush
more attention then. HTH! Eddie - Original Message - From: Ramin, Arash [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, April 29, 2002 11:39 AM Subject: RE: datasources The problem with this is that the next time we run a build the latest struts-config.xml

Re: datasources

2002-04-30 Thread Craig R. McClanahan
On Tue, 30 Apr 2002, Eddie Bush wrote: Date: Tue, 30 Apr 2002 12:08:24 -0500 From: Eddie Bush [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: datasources Ok, checkout, modify, and check back

Re: datasources

2002-04-30 Thread Eddie Bush
Tomcat does adopt that datasource - then that would be the most ideal solution yet. Thanks so much! Eddie - Original Message - From: Craig R. McClanahan [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, April 30, 2002 12:17 PM Subject: Re: datasources

Re: datasources

2002-04-30 Thread Craig R. McClanahan
On Tue, 30 Apr 2002, Eddie Bush wrote: Date: Tue, 30 Apr 2002 12:39:41 -0500 From: Eddie Bush [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: datasources Thanks Craig!! I had previously shied away

Re: datasources

2002-04-30 Thread Eddie Bush
] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, April 30, 2002 1:22 PM Subject: Re: datasources On Tue, 30 Apr 2002, Eddie Bush wrote: Date: Tue, 30 Apr 2002 12:39:41 -0500 From: Eddie Bush [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users

datasources

2002-04-29 Thread Ramin, Arash
We have a couple datasources defined in our application (in struts-config.xml) under separate keys (one is for our dev environment, and the other for production). The default behaviour for Struts is to initialize all the defined datasources and make them available to the application. Depending

multiple datasources

2002-04-26 Thread @Basebeans.com
Subject: multiple datasources From: Arash Ramin [EMAIL PROTECTED] === We have a couple datasources defined in our application (in struts-config.xml). The default behaviour for Struts is to initialize all the defined datasources and make them available to the application. Depending on which

RE: Multiple Datasources

2002-03-12 Thread BinhMinh Nguyen
I have a strange problem, can someone tell me what is wrong? I use form based authentication with Websphere using custom registry, setup in web.xml is as below. when I tried to access a protected resource URL, http://bhn.gers.com:9080/furnnet/main/dispatcher.do, since everything under dir

datasources management

2002-02-17 Thread mike m
What is the benefit of configuring datasources in the struts-config.xml file? My meaning is, I am revising an existing webapp to use struts. Obviously, I replaced my home-grown controller because struts has so many more features. But, I'm not sure I gain by replacing my home-grown datasource

datasources

2002-01-11 Thread Rubens Gama
i have two datasources defined in the struts-config.xml. how can i reference each one from my application? for example: servlet.findDataSource(1) or servlet.findDataSource(2) thanks in advance -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL

RE: datasources

2002-01-11 Thread Taylor Cowan
When you configured the datasource you gave it a name. Use that as a key to lookup the datasoruce using findDataSource( String name ) Taylor -Original Message- From: Rubens Gama [mailto:[EMAIL PROTECTED]] Sent: Friday, January 11, 2002 2:38 PM To: Struts-User Subject: datasources i

RES: datasources

2002-01-11 Thread Rubens Gama
-Mensagem original- De: Taylor Cowan [mailto:[EMAIL PROTECTED]] Enviada em: sexta-feira, 11 de janeiro de 2002 16:48 Para: Struts Users Mailing List Assunto: RE: datasources When you configured the datasource you gave it a name. Use that as a key to lookup the datasoruce using findDataSource

RE: datasources

2002-01-11 Thread Zeltser, Mark
: datasources ok, but in the struts-config.xml there isn´t a name tag. How can I specify the name of the dataSource ?. For example, this below: data-sources data-source set-property property=autoCommit value=false/ set-property property=description

RE: datasources

2002-01-11 Thread Taylor Cowan
You're right. I'm wrong. From J2EE datasources I just assumed there would be one, given that it's obvious someone would want to configure more than one data source, and the method taking a string. Anyone else? Taylor -Original Message- From: Rubens Gama [mailto:[EMAIL PROTECTED

RES: datasources

2002-01-11 Thread Rubens Gama
- De: Zeltser, Mark [mailto:[EMAIL PROTECTED]] Enviada em: sexta-feira, 11 de janeiro de 2002 18:04 Para: 'Struts Users Mailing List' Assunto: RE: datasources Rubens, You can use key=dataSourceName attribute in data-source tag. To retrieve: ActionServlet.findDataSource( dataSourceName) Mark

RE: datasources

2002-01-11 Thread Zeltser, Mark
description=some db2 key=ds2 / /data-sources Mark. -Original Message- From: Rubens Gama [mailto:[EMAIL PROTECTED]] Sent: Friday, January 11, 2002 3:18 PM To: Struts Users Mailing List Subject: RES: datasources Thank you Mark, but It´s not working. I´ve done

RES: datasources

2002-01-11 Thread Rubens Gama
' Assunto: RE: datasources I am using struts 1.0 and it works for me, however I don't use set-property attribute and assign each property directly. E.g.: data-sources data-source autoCommit=true description=some db1 key=ds1 / data-source

DataSources Problem: 2 DataSources won't work!

2001-12-12 Thread Sven Haiges
know that it has absolutely nothing to do with datasources, but this is the error we get if we add the second datasource! We also tried to use the set-property tag inside the data-sources, but the same error occured. We really appreciate any kind of help we can get, thanx, Sven Haiges

RE: DataSources Problem: 2 DataSources won't work!

2001-12-12 Thread Rob Parker
-- If that doesn't work, check the rest of the file for mistakes. Hope that helps, Rob -Original Message- From: Sven Haiges [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 12, 2001 5:01 PM To: [EMAIL PROTECTED] Subject: DataSources Problem: 2 DataSources won't work! Hi, we are currently

Multiple datasources - is this working at all ?

2001-09-13 Thread janof
Hi all, I went through the whole mail-list , even the archive, found some solutions but none of them worked for me. Maybe I have some problems with my setup, so here is my info, please help : In the struts-config.xml : - data-sources data-source set-property

RE: How to use multiple datasources ?

2001-04-09 Thread Geddes, Mark (ANTS)
How to use multiple datasources ? I am interested in this one too... Mark. -Original Message- From: Szlapa, Michael [SMTP:[EMAIL PROTECTED]] Sent: Friday, April 06, 2001 2:05 PM To: '[EMAIL PROTECTED]' Subject: How to use multiple datasources ? Does anyone know how to configu

datasources action servlet

2001-03-09 Thread Gogineni, Pratima
Hi, I was wondering if I could configure the action servlet to pick up the datasources from a different file (not struts-config). I am trying to auto-generate the struts app for different users - the thing is the action mappings are the same for all of them so I would prefer to use a constant

RE: datasources action servlet

2001-03-09 Thread Gogineni, Pratima
It looks like one option is to modify the dtd and declare a different entity that holds all the datasources - is there a less intrusive way/ is this recommended/strongly discouraged? thanks pratima -Original Message- From: Gogineni, Pratima Sent: Friday, March 09, 2001 12