|
View:
New views
11 Messages
—
Rating Filter:
Alert me
|
|
|
wicket + jdbc template appHello, guys!
I want to use wicket with plain jdbc without any persistence framework. Where i can find template application for this type of data source? Thank you for answer! |
|
|
Re: wicket + jdbc template appDo you want to use spring
On Nov 1, 2009 10:12 AM, "Ivan Dudko" <ivan.dudko@...> wrote: Hello, guys! I want to use wicket with plain jdbc without any persistence framework. Where i can find template application for this type of data source? Thank you for answer! |
|
|
Re: wicket + jdbc template app Just set up your connection in your Application subclass and provide a method to get it from wherever you need it. Use connection pooling.
Daniel
|
|
|
Re: wicket + jdbc template appHi, I got it working using spring. You can see an template application using
spring on wicket stuff: phone book http://static.springsource.org/spring/docs/2.0.8/reference/jdbc.html On Sun, Nov 1, 2009 at 5:07 PM, dtoffe <dtoffe@...> wrote: > > Just set up your connection in your Application subclass and provide a > method to get it from wherever you need it. Use connection pooling. > > Daniel > > > idudko wrote: > > > > Hello, guys! > > > > I want to use wicket with plain jdbc without any persistence framework. > > Where i can find template application for this type of data source? > > > > Thank you for answer! > > > > > > -- > View this message in context: > http://old.nabble.com/wicket-%2B-jdbc-template-app-tp26151790p26152287.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > -- Pedro Henrique Oliveira dos Santos |
|
|
Re: wicket + jdbc template appthank you guys!
|
|
|
Re: wicket + jdbc template appHello, 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-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: wicket + jdbc template appAre 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.dudko@...> 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-unsubscribe@... > For additional commands, e-mail: users-help@... > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: wicket + jdbc template appMy 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 <jcarman@...>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.dudko@...> 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-unsubscribe@... > > For additional commands, e-mail: users-help@... > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > |
|
|
RE: wicket + jdbc template appDBCP 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:checketts@...] Sent: Thursday, November 19, 2009 8:35 AM To: users@... 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 <jcarman@...>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.dudko@...> 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-unsubscribe@... > > For additional commands, e-mail: users-help@... > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: wicket + jdbc template appOn Thu, Nov 19, 2009 at 10:41 AM, Loritsch, Berin C.
<Berin.Loritsch@...> wrote: > 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. And this is why we use something like Spring's JDBC support to manage all of that for us (they've already thought of this stuff). > > -----Original Message----- > From: Clint Checketts [mailto:checketts@...] > Sent: Thursday, November 19, 2009 8:35 AM > To: users@... > 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 > <jcarman@...>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.dudko@...> > 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-unsubscribe@... >> > For additional commands, e-mail: users-help@... >> > >> > >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@... >> For additional commands, e-mail: users-help@... >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: wicket + jdbc template appThank you! I have just implement it! I am using c3p0 and SQL DAO
without Spring or any Persistent framework. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
| Free embeddable forum powered by Nabble | Forum Help |