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
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

Re: dataSources outside of actionservlet

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

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..