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

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

Re: dataSources outside of actionservlet

2002-12-17 Thread Mark
"); >> DataSource ds = (DataSource) env.lookup("yourconnection"); >> conn = ds.getConnection(); >> >> Edgar >> -Original Message- >> From: Mark [mailto:[EMAIL PROTECTED]] >> Sent: Tuesday, December 17, 2002 10:13 AM &g

Re: dataSources outside of actionservlet

2002-12-17 Thread Mark
nv.lookup("yourconnection"); > conn = ds.getConnection(); > > 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 &

RE: dataSources outside of actionservlet

2002-12-17 Thread Edgar P. Dollin
y, 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 Some_means_of_getting_to_details_in_config_xml.getDatasource(mykey); M

Re: dataSources outside of actionservlet

2002-12-17 Thread Mark
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 15:17, "Edgar P. Dollin" <[EMAIL PROTECTED]> wrote: > Another option is to aquire the

Re: dataSources outside of actionservlet

2002-12-17 Thread Mark
Thanks keith that looks like a really good elegant way of doing this, but as i conceded before I particularly stupid, and i don't get it. To be honest I've always had the db pooling stuff taken care for me before which was only of the attractions of using struts.. Is there no means to referencing

Re: dataSources outside of actionservlet

2002-12-17 Thread Mark
Woohoo!!! But you'll have to forgive my ignorance, but any chance of a more ostensive answer, like an example for example.. So something like DataSource ds = getDatasource("mykey"); (MyBEan).doSomething(ds, and other args); Is this along the right lines? Many thanks mark On 17-12-2002 15: