rajoos2004
Oct 6th, 2004, 06:40 PM
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.
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.