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
]
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
, 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
?
-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
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
, 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
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/
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 :
: 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
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 /
...
...
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
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
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
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
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
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
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
: 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
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
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
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
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
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
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
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
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
-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
).
-- 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
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
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
: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
();
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
:[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
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
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..
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]
]
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
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
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
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
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
]
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
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
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
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
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
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
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
-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
: 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
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
-
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
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
'
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
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
--
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
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
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
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
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
60 matches
Mail list logo