• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Is Spring JdbcTemplate expensive to create

 
Ranch Hand
Posts: 1211
Mac IntelliJ IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

How expensive is it to create a JdbcTemplate object?
Would creating it at the start of every method be too expensive (I guess it would) ?

Rod recommends keeping it as an instance variable in the DAO's since it is thread safe. What is the recommendation if you need to make a JDBC call in a model object that loads the data directly from the DB?

And while we are talking about Spring, has anybody tried using Spring MVC to generate Client side validation JavaScript. I remember reading a post made by Matt Riable once about it, but it did not appear very straight forward.

thanks

Sonny
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic