You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by Charles Benett <ch...@benett1.demon.co.uk> on 2001/07/19 10:51:01 UTC
Re: Turbine config
Oki DZ wrote:
>
> Hi,
>
> I use standalone Turbine for getting the db connection pooling service
> from the James mail server Unfortunately, I have to use two config files
> for defining the database connection; one is in James' and one is in
> TurbineResources.properties. Ideally, one is enough; ie: the James'
> configuration file.
>
> Problem is, TurbineConfig() insists to read the properties from the config
> file; if the file couldn't be found, then the initialization would fail. I
> think if the properties could be feed into TurbineConfig's parameters
> programmatically, that would be helpful; ie: using java.util.Properties.
> So that TurbineResources.properties file would no longer be needed, and I
> could put the necessary properties in the James' config file.
>
> I only need the db pooling service from Turbine. Can I just turn off
> all other services and still have the db pooling service?
>
> BTW, I'd like to join the Avalon user mailing list, but I don't see any.
> There is Avalon-dev, but I think it's kinda scary to join a dev list.
But if you are trying to combine code from multiple projects you are
being a dev. So join the dev list :-)
> Actually, the problem is pretty simple. The JdbcDataSource couldn't be
> used, because the initialize() method in the JdbcConnectionPool doesn't
> invoke its superclass' initialize(), so that the protected m_initialized
> never gets set to be true. Because it's always false, I couldn't get the
> pool; the superclass throws an exception, saying that the object hasn't
> been initialized.
I think it would be easier to get the avalon connection pooling working
in james than to combine with turbine.
But that's just my tupenny thought.
Charles
---------------------------------------------------------------------
To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org
Re: Turbine config
Posted by Berin Loritsch <bl...@apache.org>.
Oki DZ wrote:
>I didn't want to touch the original source code; that would beat the
>purpose of reusability in OOP, right? I tried to overcome the
>"super.initialize()" problem using subclassing. I needed three new
>subclasses. Everything worked fine. But then, it was a wrong thing to do;
>I mean, I'm not supposed to do that.
>
>So if the org.apache.avalon.excalibur.datasource.JdbcConnectionPool gets
>fixed soon, that would be great. (It's about typing a line, anyway.)
>
It's not broken.
Cocoon uses it now--extensively. There is a new FAQ entry about it,
which will show
up on the web site the next time they update the site.
Basically, you have to load the driver class (in the current CVS
version, you can specify
it in the configuration), and you need to make sure your JDBC driver is
loaded in the
classloader.
The "Developing with Avalon" documentation touches on it's use.
---------------------------------------------------------------------
To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org
Re: Turbine config
Posted by Berin Loritsch <bl...@apache.org>.
Oki DZ wrote:
>I didn't want to touch the original source code; that would beat the
>purpose of reusability in OOP, right? I tried to overcome the
>"super.initialize()" problem using subclassing. I needed three new
>subclasses. Everything worked fine. But then, it was a wrong thing to do;
>I mean, I'm not supposed to do that.
>
>So if the org.apache.avalon.excalibur.datasource.JdbcConnectionPool gets
>fixed soon, that would be great. (It's about typing a line, anyway.)
>
It's not broken.
Cocoon uses it now--extensively. There is a new FAQ entry about it,
which will show
up on the web site the next time they update the site.
Basically, you have to load the driver class (in the current CVS
version, you can specify
it in the configuration), and you need to make sure your JDBC driver is
loaded in the
classloader.
The "Developing with Avalon" documentation touches on it's use.
---------------------------------------------------------------------
To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: avalon-dev-help@jakarta.apache.org
Re: Turbine config
Posted by Berin Loritsch <bl...@apache.org>.
Oki DZ wrote:
>I didn't want to touch the original source code; that would beat the
>purpose of reusability in OOP, right? I tried to overcome the
>"super.initialize()" problem using subclassing. I needed three new
>subclasses. Everything worked fine. But then, it was a wrong thing to do;
>I mean, I'm not supposed to do that.
>
>So if the org.apache.avalon.excalibur.datasource.JdbcConnectionPool gets
>fixed soon, that would be great. (It's about typing a line, anyway.)
>
It's not broken.
Cocoon uses it now--extensively. There is a new FAQ entry about it,
which will show
up on the web site the next time they update the site.
Basically, you have to load the driver class (in the current CVS
version, you can specify
it in the configuration), and you need to make sure your JDBC driver is
loaded in the
classloader.
The "Developing with Avalon" documentation touches on it's use.
---------------------------------------------------------------------
To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-user-help@jakarta.apache.org
Re: Turbine config
Posted by Berin Loritsch <bl...@apache.org>.
Oki DZ wrote:
>I didn't want to touch the original source code; that would beat the
>purpose of reusability in OOP, right? I tried to overcome the
>"super.initialize()" problem using subclassing. I needed three new
>subclasses. Everything worked fine. But then, it was a wrong thing to do;
>I mean, I'm not supposed to do that.
>
>So if the org.apache.avalon.excalibur.datasource.JdbcConnectionPool gets
>fixed soon, that would be great. (It's about typing a line, anyway.)
>
It's not broken.
Cocoon uses it now--extensively. There is a new FAQ entry about it,
which will show
up on the web site the next time they update the site.
Basically, you have to load the driver class (in the current CVS
version, you can specify
it in the configuration), and you need to make sure your JDBC driver is
loaded in the
classloader.
The "Developing with Avalon" documentation touches on it's use.
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
Re: Turbine config
Posted by Jon Stevens <jo...@latchkey.com>.
on 7/19/01 9:36 PM, "Oki DZ" <ok...@pindad.com> wrote:
> On Thu, 19 Jul 2001, Charles Benett wrote:
>> But if you are trying to combine code from multiple projects you are
>> being a dev. So join the dev list :-)
>
> I thought that dev. lists are for committers only.
Hell no. Where did you get that silly idea from?
-jon
--
If you come from a Perl or PHP background, JSP is a way to take
your pain to new levels. --Anonymous
<http://jakarta.apache.org/velocity/ymtd/ymtd.html>
---------------------------------------------------------------------
To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-user-help@jakarta.apache.org
Re: Turbine config
Posted by Jon Stevens <jo...@latchkey.com>.
on 7/19/01 9:36 PM, "Oki DZ" <ok...@pindad.com> wrote:
> On Thu, 19 Jul 2001, Charles Benett wrote:
>> But if you are trying to combine code from multiple projects you are
>> being a dev. So join the dev list :-)
>
> I thought that dev. lists are for committers only.
Hell no. Where did you get that silly idea from?
-jon
--
If you come from a Perl or PHP background, JSP is a way to take
your pain to new levels. --Anonymous
<http://jakarta.apache.org/velocity/ymtd/ymtd.html>
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
Re: Turbine config
Posted by Jon Stevens <jo...@latchkey.com>.
on 7/19/01 9:36 PM, "Oki DZ" <ok...@pindad.com> wrote:
> On Thu, 19 Jul 2001, Charles Benett wrote:
>> But if you are trying to combine code from multiple projects you are
>> being a dev. So join the dev list :-)
>
> I thought that dev. lists are for committers only.
Hell no. Where did you get that silly idea from?
-jon
--
If you come from a Perl or PHP background, JSP is a way to take
your pain to new levels. --Anonymous
<http://jakarta.apache.org/velocity/ymtd/ymtd.html>
---------------------------------------------------------------------
To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: avalon-dev-help@jakarta.apache.org
Re: Turbine config
Posted by Jon Stevens <jo...@latchkey.com>.
on 7/19/01 9:36 PM, "Oki DZ" <ok...@pindad.com> wrote:
> On Thu, 19 Jul 2001, Charles Benett wrote:
>> But if you are trying to combine code from multiple projects you are
>> being a dev. So join the dev list :-)
>
> I thought that dev. lists are for committers only.
Hell no. Where did you get that silly idea from?
-jon
--
If you come from a Perl or PHP background, JSP is a way to take
your pain to new levels. --Anonymous
<http://jakarta.apache.org/velocity/ymtd/ymtd.html>
---------------------------------------------------------------------
To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org
Re: Turbine config
Posted by Oki DZ <ok...@pindad.com>.
On Thu, 19 Jul 2001, Charles Benett wrote:
> But if you are trying to combine code from multiple projects you are
> being a dev. So join the dev list :-)
I thought that dev. lists are for committers only.
> I think it would be easier to get the avalon connection pooling working
> in james than to combine with turbine.
I didn't want to touch the original source code; that would beat the
purpose of reusability in OOP, right? I tried to overcome the
"super.initialize()" problem using subclassing. I needed three new
subclasses. Everything worked fine. But then, it was a wrong thing to do;
I mean, I'm not supposed to do that.
So if the org.apache.avalon.excalibur.datasource.JdbcConnectionPool gets
fixed soon, that would be great. (It's about typing a line, anyway.)
Oki
---------------------------------------------------------------------
To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: avalon-dev-help@jakarta.apache.org
Re: Turbine config
Posted by Oki DZ <ok...@pindad.com>.
On Thu, 19 Jul 2001, Charles Benett wrote:
> But if you are trying to combine code from multiple projects you are
> being a dev. So join the dev list :-)
I thought that dev. lists are for committers only.
> I think it would be easier to get the avalon connection pooling working
> in james than to combine with turbine.
I didn't want to touch the original source code; that would beat the
purpose of reusability in OOP, right? I tried to overcome the
"super.initialize()" problem using subclassing. I needed three new
subclasses. Everything worked fine. But then, it was a wrong thing to do;
I mean, I'm not supposed to do that.
So if the org.apache.avalon.excalibur.datasource.JdbcConnectionPool gets
fixed soon, that would be great. (It's about typing a line, anyway.)
Oki
---------------------------------------------------------------------
To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org
Re: Turbine config
Posted by Oki DZ <ok...@pindad.com>.
On Thu, 19 Jul 2001, Charles Benett wrote:
> But if you are trying to combine code from multiple projects you are
> being a dev. So join the dev list :-)
I thought that dev. lists are for committers only.
> I think it would be easier to get the avalon connection pooling working
> in james than to combine with turbine.
I didn't want to touch the original source code; that would beat the
purpose of reusability in OOP, right? I tried to overcome the
"super.initialize()" problem using subclassing. I needed three new
subclasses. Everything worked fine. But then, it was a wrong thing to do;
I mean, I'm not supposed to do that.
So if the org.apache.avalon.excalibur.datasource.JdbcConnectionPool gets
fixed soon, that would be great. (It's about typing a line, anyway.)
Oki
---------------------------------------------------------------------
To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-user-help@jakarta.apache.org
Re: Turbine config
Posted by Oki DZ <ok...@pindad.com>.
On Thu, 19 Jul 2001, Charles Benett wrote:
> But if you are trying to combine code from multiple projects you are
> being a dev. So join the dev list :-)
I thought that dev. lists are for committers only.
> I think it would be easier to get the avalon connection pooling working
> in james than to combine with turbine.
I didn't want to touch the original source code; that would beat the
purpose of reusability in OOP, right? I tried to overcome the
"super.initialize()" problem using subclassing. I needed three new
subclasses. Everything worked fine. But then, it was a wrong thing to do;
I mean, I'm not supposed to do that.
So if the org.apache.avalon.excalibur.datasource.JdbcConnectionPool gets
fixed soon, that would be great. (It's about typing a line, anyway.)
Oki
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org