avniproject / integration-service

Service for integration Avni with other systems
GNU Affero General Public License v3.0
0 stars 2 forks source link

Make AvniHttpClient work for different implementations using implementation specific scope, session or threadLocal context #35

Closed himeshr closed 2 years ago

himeshr commented 2 years ago
  1. Extract 4 fields to separate bean - AvniImplementationClientConfig
  2. Make them scope, session or threadLocal context based
  3. Ensure the scheduled job starts with implementation specific scope, session or threadLocal context
  4. Init the AvniImplementationClientConfig bean for that implementation before starting scheduled job within the scope, session or threadLocal context
  5. If using ThreadLocal, config a separate single-thread threadPool for each implementation