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
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
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..
8 matches
Mail list logo