cancel
Showing results for 
Search instead for 
Did you mean: 

Has anyone used activiti engine with routing data source

nutharsh
Champ in-the-making
Champ in-the-making
I am able to configure activiti engine to just work with routing data source.

How easy it is to customize job executor in terms of setting the threadlocal value so that it picks right data source to perform job operations.

At the same time, i would be interested to know what all extension points we have to set threadlocal variables during activiti engine bootstrap so that i have necessary thread level variables set even before activiti engine 's configuration try to fetch data source instance using data source router.

I would be more interested in general to know, how to easily configure activiti engine to use routing data source instead of plain data source using the data source lookup key present in thread local variable.
1 REPLY 1

nutharsh
Champ in-the-making
Champ in-the-making
I am using an implementation of org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource. It reads data source key as thread local variable from current thread and picks data source based on it.