Announcement Announcement Module
Collapse
No announcement yet.
pass datasource to spring context w/ multi xml Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • pass datasource to spring context w/ multi xml

    I am developing an API to access database[only selects]using hibernate.
    I want to make this API to be able to receive the applicationContext as parameter to the API which includes datasource information, then rest of the hibernate stuff done at the API level. I am trying to implement 'datasource info' in 1 xml file and rest of the applicationContext w/ hibernate xmls in API bundle.
    I want to make my clients [web or unit tests] to create applicationContext with datasource information to the API.
    Can someone suggest the right way with some example pls.
    Note: I did implement datasource and DAO info in one applicationContext.xml and the API works fine. Now i want to give control to my clients to create the context with only data source.
Working...
X