I am working on a project by using wso2 esb as integration bus, and esb is running on cluster environment. Now ESB will connect to third party application (like salesforce) via connector, and salesforce will issue accesstoken to esb connector. There are two issues here:

1 how to refresh access token periodically
==========================================

the accesstoken will be expired every 2 hours, so how to avoid a request is invalid by expired accesstoken (in general, system needs to get a new token every 2 hours). I didn't see this configuration in ESB sample.

2 how to share access token in cluster environment
==================================================