Announcement Announcement Module
Collapse
No announcement yet.
jdbcTemplate bean in samples not needed? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • jdbcTemplate bean in samples not needed?

    It looks like the samples declare a JdbcTemplate bean from the datasource, but I don't think it's being used (even in the libraries.) Looks like the JdbcUsersConnectionFactory create their own JdbcTemplate directly from the datasource. (I was hoping it wasn't being used by the libraries with that bean name and it doesn't look like it is. If it is needed by some libraries, wouldn't it be better if it had distinct instance name like springSocialJdbcTemplate just to make it clear in any larger existing projects you have to integrate with.)

  • #2
    The JdbcTemplate is being used. The 3 samples that declare a JdbcTemplate are the showcase, popup, and movies samples. All three of these have a JdbcAccountRepository that is injected (via @Inject) with a JdbcTemplate.

    Comment

    Working...
    X