Announcement Announcement Module
No announcement yet.
point of extension to get different kind of JDBC Connection Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • point of extension to get different kind of JDBC Connection

    Good morning

    We plan to migrate all our web applications to Spring to take profit of all the Hibernate DAO support.

    The Spring classes HibernateDAOSupport, HibernateTemplate simplify a lot our infrastructure :-)

    To have the right from the boss to migrate to Spring, we are only blocked by the current specification:

    For each web user, we have a corresponding JDBC user because the users
    have not the same privileges so they do not see the same number of rows for each database table.

    Where we should extend Spring to define for each thread which JDBC connection to open/use according to the web user login of the thread ?

    any advise would be appreciated

  • #2
    Hi Farid,

    This is a great news!!!
    Please take a look at org.springframework.jdbc.datasource.UserCredential sDataSourceAdapter.
    This thread shows how you can configure the datasources.

    Last edited by robyn; May 14th, 2006, 05:36 PM.


    • #3
      Thank you very much: it sounds very nice and simple.

      I buy :-)

      au revoir