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
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
trying to reference the datasource specified in config.xml in my business
logic classes.
I've been very good and seperated everything
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 as one should. but i really
need a straight answer
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..
15 matches
Mail list logo