hi again,

What I want is a class that has 2 functions.

1 to initialize a new pool for a new database (arguments : url , un, pw ,
identifier)
1 to get a connection (arguments : idenfifier).

eg

pool.init("jdbc:....." , "scott" , "tiger" , "customerdb");
pool.getConnection("customerdb");

The idea is that you configure the pool and all classes in my application
can use it just by calling the static function getConnection...

That's about the idea ... just simplify the interface for creating
connections (isn't that a Facade )

thx

stef




----- Original Message -----
From: "Kenny Smith" <[EMAIL PROTECTED]>
To: "Jakarta Commons Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, March 04, 2003 4:23 PM
Subject: Re: Newbie question


> Hi Stefan,
>
> I'm actually not sure what you mean by a "facade?" I mean.. I know the
> word, just not how you are using it in relation to DBCP.
>
> Kenny
>
> Stefan Smeets wrote:
> > Hi,
> >
> > I was looking at DBCP and it seems that it's what I am looking for..
.the only problem is that the documentation is a bit cryptic. Has anyone got
better info or an example on how to implement a "facade" using dbcp classes.
> >
> > Thanx a lot
> >
> > stefan smeets
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to