DBCP and C3P0 are implementations of the pooled DataSource interface, so
all you have to do is bind them to JNDI.  Tomcat and other Servlet
container vendors have instructions on how to do this.  Inside your
code, you access it through the JNDI API which looks up the pooled
datasource.

Do be sure to close anything you open, which includes resultsets,
statements, and connections.  Put the close code in "finally" statements
to ensure that you don't fill up your pool with open resources.  Open
ResultSets also have matching resources on your database server, so you
can introduce scalability problems if you aren't careful.

-----Original Message-----
From: Clint Checketts [mailto:checke...@gmail.com] 
Sent: Thursday, November 19, 2009 8:35 AM
To: users@wicket.apache.org
Subject: Re: wicket + jdbc template app

My Wicket app I maintain only uses the JdbcTemplate class from Spring.
We
don't use any hibernate or other ORM framework.

I don't have any code I can give, but I can answer any questions. How
far
have you gotten?

-Clint


On Thu, Nov 19, 2009 at 7:23 AM, James Carman
<jcar...@carmanconsulting.com>wrote:

> Are you saying you don't want to use Spring at all?  But, you do want
> to use DBCP or C3P0?
>
> On Thu, Nov 19, 2009 at 7:46 AM, Ivan Dudko <ivan.du...@gmail.com>
wrote:
> > Hello, guys!
> >
> > I am still could not implement wicket application without any
> > persistence framework and also spring-jdbc.
> > I want to use only connection pooling with dbcp or c3p0.
> > May you provide example for this kind of app.
> >
> > Thank you for answer!
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to